加入收藏 | 设为首页365足彩外围
 365777体育
杭州电气1019的最小公倍数总是在寻找错误,WA,代码为:
发布时间:2019-10-03 点击:
Hang Electric 1019LeastCommonMultiple始终是WA,并且会查找错误。代码如下:
#includeiostreamusingnamespacestd; intcommon(inta,intb); intmain(){intt; inti; intn; intj; longfirst;长秒; cinfor(i = 0; ii ++){cinfirst = 1; for(j = 0; jj ++){硬币。
#includeiostreamusingnamespacestd; intcommon(inta,intb); intmain(){intt; inti; intn; intj; longfirst; long second; long second; cinfor(i = 0; it; i ++){cinfirst = 1; for(j = 0;jn; j ++){cinsecond; first =(first * second)/ common(first,second);}coutfirstendl;}return0;}intcommon(inta,intb){intr; r = a%b; if(r == 0)returnb;否则{a = b; b = r; returncommon(a,b);}}
发展


上一篇:如果您是囚犯,请不要犯罪。     下一篇:没有了