摘要:
递推#include#include#include#include#includeusing namespace std;int a[130];void init(){ memset(a, 0 , sizeof(a)); a[0] = 1; for(int i = 1; i <=... 阅读全文
posted @ 2013-08-13 20:22
xlc2845
阅读(92)
评论(0)
推荐(0)
摘要:
大数#include#include#include#include#includeusing namespace std;int a[2000];int main(){ int t; scanf("%d",&t); while(t--) { int n; ... 阅读全文
posted @ 2013-08-13 20:12
xlc2845
阅读(81)
评论(0)
推荐(0)
摘要:
好水......#include#include#include#include#includeusing namespace std;int a[20], b[20];int main(){ int A,D; while(scanf("%d%d",&A, &D) == 2 && A+D... 阅读全文
posted @ 2013-08-13 20:02
xlc2845
阅读(130)
评论(0)
推荐(0)
摘要:
看似很水 却wa了好多遍 spoj上果然没有一下可以水过去的题.......#include#include#include#includeusing namespace std;int main(){ int t; scanf("%d",&t); while(t--) {... 阅读全文
posted @ 2013-08-13 10:29
xlc2845
阅读(91)
评论(0)
推荐(0)
摘要:
自己暴了一下不过 转一个 bfs... #include #include #include #include #define maxn 10010using namespace std;struct node{ int v,dist; node() {} node(int _... 阅读全文
posted @ 2013-08-13 09:34
xlc2845
阅读(151)
评论(0)
推荐(0)

浙公网安备 33010602011771号