摘要: 23号~26号的10场cf第一场:#272 div1A题:推下公式然后统计,注意a/b=c,a=c*b+(a%b),比如7/3=2,7=2*3+7%3。没什么好讲的,A题就是个水题。#include#define REP(i,a,b) for(int i=a;i=b;i--)using namesp... 阅读全文
posted @ 2015-08-23 20:44 __560 阅读(232) 评论(0) 推荐(0) 编辑
摘要: hdu4549 M-fib数列 费马小定理+矩阵快速幂M斐波那契数列Time Limit: 3000/1000 MS (Java/Others)Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 2122Accepted Su... 阅读全文
posted @ 2015-08-23 20:38 __560 阅读(302) 评论(0) 推荐(0) 编辑
摘要: 2012 jinhuaI题:签到题,没什么意思。#include#include#include#include#includeusing namespace std;const int maxn=1000100;int n;int a[maxn];int main(){ while(cin>... 阅读全文
posted @ 2015-08-23 19:37 __560 阅读(267) 评论(0) 推荐(0) 编辑
摘要: bestcoder#52 1002 TSP 状压dpVictor and WorldAccepts: 99Submissions: 644Time Limit: 4000/2000 MS (Java/Others)Memory Limit: 262144/131072 K (Java/Others)... 阅读全文
posted @ 2015-08-23 00:11 __560 阅读(311) 评论(0) 推荐(0) 编辑