摘要:
1 #define _for(i,a,b) for(int i = (a);i & days, vector& costs) 12 { 13 int sz = days.size(); 14 int dp[sz+2]; 15 initdp(dp,sz+2); 16 17 ... 阅读全文
摘要:
1 #define _for(i,a,b) for(int i = (a);i & A) 14 { 15 int cur = 0; 16 if(A.size()<2) 17 return 0; 18 19 int rnt = 0; 20 _for(i... 阅读全文
摘要:
1 #define pb push_back 2 #define _for(i,a,b) for(int i = (a);i & stones) 7 { 8 int sz = stones.size(); 9 if(sz==2&&stones[1]==1) return true; 10 11 v... 阅读全文
摘要:
1 #define _for(i,a,b) for(int i = (a);i sumEvenAfterQueries(vector& A, vector>& queries) 8 { 9 vector rnt; 10 int rntEle = 0; 11 _for(i,0,A.size()) 12 ... 阅读全文
摘要:
1 #define pb push_back 2 #define _for(i,a,b) for(int i = (a);i v,TreeNode* root,string &s) 7 { 8 9 if(root->left==NULL&&root->right==NULL) 10 { 11 ... 阅读全文
摘要:
水过去了(发出了混子的声音 阅读全文
摘要:
1 bool cmp(Interval a,Interval b) 2 { 3 return a.start intervalIntersection(vector& A, vector& B) 10 { 11 vector rnt; 12 for(int i = 0; i =B[j].start&&A[i].sta... 阅读全文
摘要:
PS:只放了一个建筑,最差解法,完全是水过去的 阅读全文
摘要:
1 #include 2 #define _for(i,a,b) for(int i = (a),i##end=(b);i > c; 17 if(c=='U') 18 y ++; 19 else if(c=='R') 20 x ++; 21 else if... 阅读全文
摘要:
1 #include 2 #define _for(i,a,b) for(int i = (a);i score score) 20 return 1; 21 return -1; 22 } 23 24 void show(TEAM *teamList,int n) 25 { 26 _for(j,0,n) 27 printf("%d %d %d %... 阅读全文