爱嘉牛LA

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

2012年5月20日

摘要: View Code #include<iostream>using namespace std;int gcd(int x,int y){ return y==0?x:gcd(y,x%y);}int main(){ int x,y; cin>>x>>y; cout<<gcd(x,y)<<endl; return 0;} 阅读全文
posted @ 2012-05-20 10:22 爱嘉牛LA 阅读(218) 评论(0) 推荐(0) 编辑