NWU_ACM

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2017年5月24日

摘要: #include #include using namespace std; int gcd(int a,int b) { return b?gcd(b,a%b):a; } int main() { int a,b,c; while(scanf("%d%d%d",&a,&b,&c),a+b+c) { a/=gcd(b,c); if(... 阅读全文
posted @ 2017-05-24 23:00 NWU_ACM 阅读(82) 评论(0) 推荐(0) 编辑