
补题
文章平均质量分 82
saragrean
这个作者很懒,什么都没留下…
展开
-
FOJ有奖月赛-2015年10月(没有补完)
题目:点击打开链接 每次福州的最担心的就是暴0,这次居然又是暴0,说到底还是水平太低了,有思路的总是wa,tle,代码不够完善 1 快来快来数一数 最后的公式是 a[1]=1,a[2]=7,a[n]=6*a[n-1]-a[n-2]+1,显然是用矩阵快速幂 提交的时候记得用Visual C++,不要用GNU C++,否则会超时 #include #include #incl原创 2015-10-07 16:35:48 · 755 阅读 · 0 评论 -
Codeforces Round #262
div. 2 【A. Vasya and Socks】 #include using namespace std; int main() { int n,m; scanf("%d%d", &n, &m); int last=0; int ans=0; while(n) { n--; last++; ans++; if(last == m) { last原创 2015-10-30 21:32:03 · 418 阅读 · 0 评论 -
Codeforces Round #322 (Div. 2)
【A. Vasya the Hipster】 #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long ll; const int N =原创 2015-10-26 21:21:16 · 391 阅读 · 0 评论 -
Codeforces Round #327
div. 2 【A. Wizards' Duel】 【B. Rebranding】 【C. Median Smoothing】 【D. Chip 'n Dale Rescue Rangers】 【E. Three States】 div. 1 【D. Top Secret Task】 【E. Birthday】原创 2015-10-26 20:28:56 · 313 阅读 · 0 评论 -
Codeforces Round #325
div. 2 【A. Alena's Schedule】 #include #include #include #include #include using namespace std; int main() { int a,n,flag=0,ff=0,ans=0; scanf("%d",&n); for(int i=0;i<n;i++) { scanf("%d",&a原创 2015-10-26 20:54:16 · 242 阅读 · 0 评论 -
Codeforces Round #326
div. 2 【A. Duff and Meat】 【B. Duff in Love】 【C. Duff and Weight Lifting】 【D. Duff in Beach】 【E. Duff in the Army】 【F. Duff in Mafia】 div. 1 【E. Duff as a Queen】 【F原创 2015-10-26 20:47:21 · 412 阅读 · 0 评论 -
第十一届浙江省省赛题(未补完)
【ZOJ 3776 Pokemon Master】 【ZOJ 3777 Problem Arrangement】 【ZOJ 3778 Talented Chef】 【ZOJ 3779 Chessboard and Flowers】 【ZOJ 3780 Paint the Grid Again】 【ZOJ 3781 Paint the Grid R原创 2015-10-10 14:14:42 · 605 阅读 · 0 评论 -
Codeforces Round #321 (div. 2)
【Codeforces Round #321 (Div. 2)】 A. Kefa and First Steps原创 2015-09-24 22:07:15 · 418 阅读 · 0 评论 -
Codeforces Round #323
div. 2 【A. Asphalting Roads】 #include #include int h[100],v[100]; int k[3000]; int main() { int n; memset(h,0,sizeof(h)); memset(v,0,sizeof(v)); scanf("%d",&n); int flag=0,l=0; for(int i=1;i原创 2015-10-26 21:12:55 · 434 阅读 · 0 评论 -
143 - ZOJ Monthly, October 2015
【A Ant】 比赛的时候公式推出来了,可是取模那一块弄错了,一直wa 假设另外两条边是x,y 那么最短的路线就是len = x^2 + y^2 + n^2 + 2*x*y 这个公式分成三个部分求 s1 = sum(x^2 + y^2) s2 = sum(n^2) s3 = sum(2*x*y) 假设n=3 n x y 3 3 3原创 2015-10-23 19:58:21 · 375 阅读 · 0 评论 -
Codeforces Round #329 (Div. 2)
【A. 2Char】 在n个字符串中,任选x个组成一长串,最终得到的长串最多由两个字母组成 问最终得到的长串的最大长度是多少 两个for循环,26个字母两两组合 【B. Anton and Lines】 直线的方程式是y = k*x+b 输入x1, x2以及n个直线方程式的k,b 问x1 y1 = k1*x1+b1 y2 = k1*x2+b1 y1' = k2*x1+b2原创 2015-11-05 20:32:58 · 412 阅读 · 0 评论 -
【2015上海赛区网络赛】(没有补完)
01(A) HDU 5468 Puzzled Elena 02(B) HDU 5469 Antonidas 03(C) HDU 5470 Typewriter 04(D) HDU 5471 Count the Grid 05(E) HDU 5472 Code Formatting 06(F) HDU 5473 There was a kingdom 07(G) HD原创 2015-09-26 22:33:14 · 877 阅读 · 0 评论 -
【2015合肥网络赛】(没有补完)
HDU 5484 Monitor the Alpacas HDU 5485 The Relationship in Club HDU 5486 Difference of Clustering HDU 5487 Difference of Languages HDU 5488 Shape HDU 5489 Removed Interval HDU 5490 Simple Matrix原创 2015-09-29 18:34:21 · 794 阅读 · 0 评论 -
Educational Codeforces Round 1
【A. Tricky Sum】 【B. Queries on a String】 【C. Nearest vectors】 【D. Igor In the Museum】 【E. Chocolate Bar】 【F. Cut Length】原创 2015-11-14 20:27:51 · 402 阅读 · 0 评论