摘要:
Cube Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/65536 K (Java/Others)Total Submission(s): 1949 Accepted Submission(s): 1013 Problem D 阅读全文
摘要:
See you~ Time Limit: 5000/3000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 4753 Accepted Submission(s): 1518 Proble 阅读全文
摘要:
A Simple Problem with Integers Time Limit: 5000/1500 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 5402 Accepted Subm 阅读全文
摘要:
这个题刚开始的时候是套模板的,并没有真的理解什么树状数组的区间更新,这几天想了一下,下面是总结: 区间更新这里引进了一个数组delta数组,delta[i]表示区间 [i, n] 的共同增量,每次你需要更新的时候只需要更新delta数组就行了,因为每段区间更新的数都记录在这个数组中,那怎么查询前缀和 阅读全文
摘要:
这个求一千亿以内的素数大约用6780ms 这个完全就是爆炸了 #include <bits/stdtr1c++.h> #define MAXN 100 // pre-calc max n for phi(m, n) #define MAXM 100010 // pre-calc max m for 阅读全文
摘要:
A Simple Problem with Integers Time Limit: 5000MS Memory Limit: 131072K Total Submissions: 97217 Accepted: 30358 Case Time Limit: 2000MS Description Y 阅读全文
摘要:
Flowers Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 3150 Accepted Submission(s): 1549 Problem 阅读全文
摘要:
敌兵布阵 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 78528 Accepted Submission(s): 33171 Problem 阅读全文
摘要:
/* 因为归并排序至于O(n)的复杂度所以省时 */ #include #include #include #include #include #include #include #define N 100010 #define MAXN 100010 using namespace std; //将有二个有序数列a[first...mid]和a[mid...last]合并。 void m... 阅读全文
摘要:
Color the ball Time Limit: 9000/3000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 17276 Accepted Submission(s): 8640 阅读全文