2013年6月10日
摘要: 求能使a,b同余的正整数m的个数,即a,b差的因子个数。 1 #include <algorithm> 2 #include <iostream> 3 #include <iomanip> 4 #include <cstring> 5 #include <cstdlib> 6 #include <climits> 7 #include <sstream> 8 #include <fstream> 9 #include <cstdio>10 #include <string>1 阅读全文
posted @ 2013-06-10 18:01 Ac_国士无双 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 博弈,求SG值 1 #include<stdio.h> 2 int main() 3 { 4 int n; 5 while(scanf("%d",&n)!=EOF) 6 { 7 if(n%3==0) 8 printf("Cici\n"); 9 else10 printf("Kiki\n");11 }12 return 0;13 } 阅读全文
posted @ 2013-06-10 17:04 Ac_国士无双 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 博弈,水题#include<stdio.h>int main(){ int c,n,m; scanf("%d",&c); while(c--) { scanf("%d%d",&n,&m); if(n%(m+1)==0) printf("second\n"); else printf("first\n"); } return 0;} 阅读全文
posted @ 2013-06-10 16:47 Ac_国士无双 阅读(91) 评论(0) 推荐(0) 编辑
摘要: 博弈,简单题,两道只能算作一道 1 #include<stdio.h> 2 #include<string.h> 3 int main() 4 { 5 int a,i,t,n,m[100],a1,j,count; 6 while(scanf("%d",&n)!=EOF) 7 { 8 memset(m,0,sizeof(m)); 9 count=0;10 for(i=0;i<n;i++)11 {12 scanf("%d",&a);13 if(a>1) count... 阅读全文
posted @ 2013-06-10 16:33 Ac_国士无双 阅读(160) 评论(0) 推荐(0) 编辑