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 |
Re:为何WA???呜呼-----In Reply To:为何WA???呜呼----- Posted by:904013041 at 2004-12-31 15:58:19 > #include <stdio.h> > #include <math.h> > void main(){ > float sp; > int wei,stre; > scanf("%f %d %d",&sp,&wei,&stre); > while(sp!=0 || wei!=0 || stre!=0){ > if(sp>6.0 || sp<=6.0 && sp>5.0 && (wei>=300 && stre<500 || wei<300 && stre>=500 || wei<300 && stre<500) || sp<=5.2 && sp>4.5 && (wei>=200 && stre<300 || wei<200 && stre>=300 || wei<200 && stre<300) || sp<=4.5 && (wei>=150 && stre<200 || wei<150 && stre>=200 || wei<150 && stre<200)) > printf("No positions\n"); > if(sp<=4.5){ > if(wei>=150 && wei<200 && stre>=200 || wei>=200 && stre>=200 && stre<300) > printf("Wide Receiver\n"); > if(wei>=200 && wei<300 && stre>=300 ||wei>=300 && stre>=300 && stre<500) > printf("Wide Receiver Quarterback\n"); > if(wei>=300 && stre>=500) > printf("Wide Receiver Quarterback Lineman\n"); > } > else{ > if(sp<=5.0){ > if(wei>=200 && stre>=300 && stre<500 || wei>=200 && wei<300 && stre>=500) > printf("Quarterback\n"); > if(wei>=300 && stre>=500) > printf("Quarterback Lineman\n"); > } > else{ > if(sp<=6.0 && wei>=300 && stre>=500) > printf("Lineman\n"); > } > } > scanf("%f %d %d",&sp,&wei,&stre); > } > } Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator