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

不用这么紧凑吧,你空行不对,很乱

Posted by sunmoonstar_love at 2005-08-02 18:18:03
In Reply To:为什么它就不通过呢?它老是Presentation Error。 Posted by:tcxgsy at 2005-08-02 17:09:33
> #define Max 1024
> #include<stdio.h>
>  main()
>  { 
>    int i=0,n,b[Max],N[Max],M[Max],P[Max],C[Max];
>    scanf("%d%d%d%d",&N[i],&M[i],&P[i],&C[i]);
> while(N[i]||M[i]||P[i]||C[i])
>   if(N[i]<50000&&N[i]>0&&M[i]<50000&&M[i]>0&&P[i]<50000&&P[i]>0&&C[i]<50000&&C[i]>0&&N[i]<M[i])
>     {printf("\n");i++;scanf("%d%d%d%d",&N[i],&M[i],&P[i],&C[i]);}
>   for(n=0;n<i;n++)
>       b[n]=N[n]+C[n]-(M[n]+C[n]-P[n]);
> for(n=0;n<i;n++)
>   printf("\n%d",b[n]);
>     }
> 

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