补题
文章平均质量分 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 · 710 阅读 · 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 · 342 阅读 · 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 · 362 阅读 · 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 · 289 阅读 · 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 · 212 阅读 · 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 · 375 阅读 · 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 · 562 阅读 · 0 评论 -
Codeforces Round #321 (div. 2)
【Codeforces Round #321 (Div. 2)】A. Kefa and First Steps原创 2015-09-24 22:07:15 · 363 阅读 · 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 · 401 阅读 · 0 评论 -
143 - ZOJ Monthly, October 2015
【AAnt】 比赛的时候公式推出来了,可是取模那一块弄错了,一直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=3n x y3 3 3原创 2015-10-23 19:58:21 · 351 阅读 · 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+b1y1' = k2*x1+b2原创 2015-11-05 20:32:58 · 376 阅读 · 0 评论 -
【2015上海赛区网络赛】(没有补完)
01(A) HDU 5468 Puzzled Elena02(B) HDU 5469 Antonidas03(C) HDU 5470 Typewriter04(D) HDU 5471 Count the Grid05(E) HDU 5472 Code Formatting06(F) HDU 5473 There was a kingdom 07(G) HD原创 2015-09-26 22:33:14 · 844 阅读 · 0 评论 -
【2015合肥网络赛】(没有补完)
HDU 5484 Monitor the AlpacasHDU 5485 The Relationship in ClubHDU 5486 Difference of ClusteringHDU 5487 Difference of LanguagesHDU 5488 ShapeHDU 5489 Removed IntervalHDU 5490 Simple Matrix原创 2015-09-29 18:34:21 · 754 阅读 · 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 · 370 阅读 · 0 评论