标签:miss iss http source php des 实例 包含 scanf
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 69793 Accepted Submission(s): 38394
代码:
1 #include<stdio.h> 2 int fun(int a,int b){ 3 if(a%b==0) 4 return b; 5 else 6 return fun(b,a%b); 7 } 8 int main(){ 9 int a,b,ans; 10 while(~scanf("%d%d",&a,&b)){ 11 ans=a*b/fun(a,b); 12 printf("%d\n",ans); 13 } 14 return 0; 15 }
标签:miss iss http source php des 实例 包含 scanf
原文地址:https://www.cnblogs.com/ZERO-/p/9740665.html