| ||||||||||
| 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 | |||||||||
我知道!!下面...就可以了.In Reply To:why WA? Posted by:PC0400322032 at 2004-06-26 17:41:37 改成:
while(1)
{
scanf("%d %d %d",&a,&b,&c);
i =a;j=b;k=c;
if(a==-1 && b==-1 && c==-1)
break;
else
if(a<=0 || b<=0 || c<=0)
i=j=k=0;
else
if(a>20 || b>20 || c>20)
i=j=k=20;
printf("w(%d, %d, %d) = %d\n",a,b,c,w[i][j][k]);
}
Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator