http://acm.edu.cn/showproblem.php?pid=1032
直接用暴力方法竟然不超时...T_T感动cry ps:据说...自己算一下循环不超过10^6就不超时...囧
1 #include2 int main() 3 { 4 int a1,b1,a,b,i,j,count,t,s; 5 while(scanf("%d%d",&a,&b)!=EOF) 6 { 7 a1=a t)24 t=count; 25 }26 }27 printf("%d %d %d\n",a,b,t);28 }29 }