标签:
10 14
70
</pre><pre name="code" class="cpp">#include<stdio.h> int gcd(int a,int b) { return b==0? a:gcd(b,a%b); } int main() { int a,b; while(~scanf("%d%d",&a,&b)) { printf("%d\n",a/gcd(a,b)*b); } return 0; }
标签:
原文地址:http://www.cnblogs.com/gcczhongduan/p/4201795.html