Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

我的测试数据都过了,但还是WA,希望你们可以看看我是不是理解错了

Posted by tcxgsy at 2005-09-10 07:52:40 on Problem 2603
#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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator