码迷,mamicode.com
首页 >  
搜索关键字:using    ( 53562个结果
POJ 2975 Nim(普通nim)
题目链接 #include #include using namespace std; int main() { int n,k[1005]; int sum,cnt; while(scanf("%d",&n)&&n) { sum=0,cnt=0; for(int i=1;i=(sum^k[i]))...
分类:其他好文   时间:2016-03-05 06:52:32    阅读次数:287
POJ 3537 Crosses and Crosses(SG/还未想完全通的一道SG)
题目链接 #include #include #include using namespace std; int sg[2010]; int get_sg(int n) { if(n<0) return 0; if(sg[n]!=-1) return sg[n]; bool vis[2010]; /...
分类:其他好文   时间:2016-03-05 06:51:38    阅读次数:152
POJ 2368 Buttons(巴什博弈变形)
题目链接 #include #include #include using namespace std; int a[1005]; int main() { int n; while(~scanf("%d",&n)) {//要后者胜,只要s=0,那么n=(m+1)*r,输出最小的m即可 int le...
分类:其他好文   时间:2016-03-05 06:51:34    阅读次数:161
POJ 2484 A Funny Game(找规律)
题目链接 #include #include using namespace std; int main() { int n; while(scanf("%d",&n)&&n) {//alice先把环破坏,变成链,然后bob只要在链中间取1或2个 //连续的coins,让链变成左右对称的两条,bob...
分类:其他好文   时间:2016-03-05 06:51:28    阅读次数:194
PAT1013. Battle Over Cities(邻接矩阵、邻接表分别dfs)
//采用不同的图存储结构结构邻接矩阵、邻接表分别dfs,我想我是寂寞了吧,应该试试并查集,看见可以用并查集的就用dfs,bfs代替。。。。。。怕了并查集了 //邻接矩阵dfs #include<cstdio>#include<algorithm>using namespace std;const i
分类:其他好文   时间:2016-03-05 01:39:56    阅读次数:236
文件流读写、大文件移动 FileStream StreamWriter
文件流读写 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; namespace _09文件流 { class Program { static
分类:移动开发   时间:2016-03-05 00:17:13    阅读次数:326
bzoj 1207: [HNOI2004]打鼹鼠
1 #include<cstdio> 2 #include<iostream> 3 #include<cmath> 4 using namespace std; 5 int x[10008],y[10009],z[10008],f[10008],n,m,max1; 6 int main() 7 {
分类:其他好文   时间:2016-03-05 00:13:29    阅读次数:203
BZOJ 1022 小约翰的游戏
反尼姆游戏。 #include<iostream>#include<cstdio>#include<cstring>using namespace std;int t,n,num[55],ans=0;void work(){ scanf("%d",&n); int cnt=0;ans=0; for
分类:其他好文   时间:2016-03-05 00:12:17    阅读次数:166
bzoj 1221: [HNOI2001] 软件开发
1 #include<cstdio> 2 #include<iostream> 3 #include<cstring> 4 #define M 10001 5 #define inf 2139062143 6 using namespace std; 7 int cnt=1,sum,T,n,a,b,
分类:其他好文   时间:2016-03-05 00:12:00    阅读次数:148
bzoj 1263: [SCOI2006]整数划分
1 #include<cstdio> 2 #include<iostream> 3 #include<cstring> 4 using namespace std; 5 int a[3000],d[3000],n; 6 void cheng(int a1) 7 { 8 for(int i=1;i<=
分类:其他好文   时间:2016-03-05 00:07:59    阅读次数:198
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!