最小公倍數
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 32700 Accepted Submission(s): 18237
10 14
70AC代碼:
#include#include using namespace std; int main() { long int a,b,m; int i; while(~scanf(%ld%ld,&a,&b)) { if(a>b) m=a; else m=b; for(i=m;i