hdu 1014 Uniform Generator
2011-12-03 21:17
323 查看
题目:http://acm.hdu.edu.cn/showproblem.php?pid=1014
水题。。。直接模拟
下面是AC代码
水题。。。直接模拟
下面是AC代码
#include<iostream> using namespace std; int main() { int s,m,x,c; while(scanf("%d%d",&s,&m)!=EOF) { x=c=0; do { x=(x+s)%m; ++c; } while(x!=0); if(c==m) printf("%10d%10d Good Choice\n\n",s,m); else printf("%10d%10d Bad Choice\n\n",s,m); } return 0; }
相关文章推荐
- (pku 1014) (hdu 1059) (zoj 1049) Dividing muhanshu
- hdu 1014 Uniform Generator 数论
- hdu 1014
- hdu 1236&&九度oj 1014 排名
- hdu1014(随机数)
- 【hdu - 1014】
- HDU 1014 Uniform Generator
- HDU 1014 Uniform Generator
- HDU 1059 POJ 1014 Dividing (多重背包)
- poj 1014||hdu 1059 dividing(多重背包 二进制优化)
- ZOJ1149 POJ1014 HDU1059 Dividing,多重背包问题
- HDU 1014 Uniform Generator
- HDU 1014 Uniform Generator 水题
- HDU--1014--Uniform Generator
- hdu 1014 最大公约数
- hdu 1014 Uniform Generator
- Hdu 1014 Uniform Generator
- HDU 1014 Uniform Generator 模拟题
- hdu 1014 Uniform Generator
- hdu 1014 Uniform Generator