摘要:
1 #define _for(i,a,b) for(int i = (a);i & A, int L, int M) 6 { 7 vector m1(A.size()),m2(A.size()); 8 m1[0] = m2[0] = 0; 9 _for(i,0,L) 10 ... 阅读全文
摘要:
1 #define pb push_back 2 #define _for(i,a,b) for(int i = (a);i > allCellsDistOrder(int R, int C, int r0, int c0) 29 { 30 vector v; 31 32 _for(i,0,R) 33 ... 阅读全文
摘要:
1 #define _for(i,a,b) for(int i = (a);i >& costs) 17 { 18 vector v; 19 _for(i,0,costs.size()) 20 { 21 k kk; 22 kk.a = cost... 阅读全文
摘要:
1 #include 2 #define _for(i,a,b) for(int i = (a);i >=1; 17 } 18 return ans; 19 } 20 int main() 21 { 22 ll liusi[70]; 23 while(~scanf("%lld",&liusi[0])) 24 { 25 _for(i,1... 阅读全文
摘要:
1 #include 2 #define _for(i,a,b) for(int i = (a);i > tmp) 9 { 10 int sz = tmp.size(); 11 12 int m; 13 scanf("%d",&m); 14 int sum = 0; 15 _for(i,0,m) 1... 阅读全文
摘要:
const ll mod = 1000000007; ll mult_mod(ll a,ll b) //(a*b)%mod a,b,mod<2^63 { a %= mod; b %= mod; ll ans=0; while(b) { if(b&1) { ans=ans+a; if(ans>=mod 阅读全文