| ||||||||||
| 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 | |||||||||
为什么它就不通过呢?它老是Presentation Error。#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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator