zoj 3882 博弈 *
2015-08-17 16:36
369 查看
看了半天约数居然包括1,水了
#include<cstdio> #include<iostream> #include<algorithm> #include<cstring> #include<cmath> #include<queue> #include<map> using namespace std; #define MOD 1000000007 const int INF=0x3f3f3f3f; const double eps=1e-5; typedef long long ll; #define cl(a) memset(a,0,sizeof(a)) #define ts printf("*****\n"); const int N=1005; int n,m,tt; int main() { int i,j,k,ca=1; while(scanf("%d",&n)!=EOF) { puts(n?"win":"fail"); } }
相关文章推荐
- Android Context的startService方法如何使用?
- POJ 2777-Count Color
- 04常量和变量
- xamarin.ios Parse 模糊查询 查询
- Android 用户表单融合各类简易控件以及融入FloatingActionButton以及butterknife
- hdu1233还是畅通工程 最小生成树(prim或kruskal)
- php利用api搜索下载it-ebooks.info上图书
- 微信打完包登录分享失败原因是由于打包keystore不对
- 初试阿里云服务器
- android studio 快捷键
- UVA 439 Knight Moves 走象棋 (DFS or BFS)
- Android 用户表单融合各类简易控件以及融入FloatingActionButton以及butterknife
- Exception在方法继承中的限制
- 编写高质量代码改善C#程序的157个建议——建议59:不要在不恰当的场合下引发异常
- 讨论IM软件“网上假货’
- 直接插入排序
- 打开chm文件,不显示文件内容的解决办法
- leetcode 149 —— Max Points on a Line
- DataGridView特殊按钮(DisableButtonColumn)
- ATS程序功能和使用方法详解