Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
我的测试数据都过了,但还是WA,希望你们可以看看我是不是理解错了#include"stdio.h" void main() { long a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,ult; long i,j=0; scanf("%ld%ld%ld%ld%ld%ld%ld%ld%ld%ld",&a1,&a2,&a3,&a4,&a5,&a6,&a7,&a8,&a9,&a10); { j=0; ult=a1*a2*a3*a4*a5*a6*a7*a8*a9*a10; loop: for(i = 1;i <= ult/2; i++) if(ult%i==0) j++; ult=j; if((ult+1)>=10) {ult+=1;j=0;goto loop;} //只要大于10,就不断的循环 printf("%d\n",j+1); } } 是不是我的理解有错误呢 Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator