A - Wolf and Rabbit
来源:互联网 发布:淘宝充流量要验证码 编辑:程序博客网 时间:2024/06/05 20:06
1.题意:
2.思路:
3.失误:
#include<iostream>#include<cstring>#include<algorithm>#include<cmath>#include<cstdio>using namespace std; __int64 GCD(__int64 a,__int64 b){ if(a%b==0) return b; return GCD(b,a%b); }int main(){ __int64 m,i,n,t;cin>>t;while(t--) { cin>>m>>n; if(GCD(m,n)==1) { cout<<"NO"<<endl;}else{cout<<"YES"<<endl;}} return 0; }
0 0
- A - Wolf and Rabbit
- HDU1222:Wolf and Rabbit
- 1222 Wolf and Rabbit
- Wolf and Rabbit tzc
- hdu1222-Wolf and Rabbit
- Wolf and Rabbit
- Wolf and Rabbit
- HDU1222 Wolf and Rabbit
- Wolf and Rabbit
- HDOJ1222--Wolf and Rabbit
- Wolf and Rabbit<hdoj1222>
- Wolf and Rabbit
- Wolf and Rabbit
- Wolf and Rabbit
- Wolf and Rabbit hdu1222
- Wolf and Rabbit
- Wolf and Rabbit
- wolf and rabbit
- javascript实现获取指定精度的上传文件的大小
- [概率dp] hdu 4336 Card Collector
- python 集合操作符和关系符号
- Telegram 之 MTProtoKit 架构分析
- 吉他调弦
- A - Wolf and Rabbit
- 数据库设计原则(转载)
- Binder学习指南
- 安装MongoDB
- Spring+Mybatis+Tomcat下多数据源与 atomikos 分布式事务配置
- MySQL索引数据结构及算法原理
- 删除GitHub上repository里的某个文件
- 73条日常Linux shell命令汇总
- [bzoj1562][NOI2009]变换序列(贪心+dfs/二分图最大匹配)