| ||||||||||
| 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:why!!!wa!!!In Reply To:why!!!wa!!! Posted by:hh007 at 2006-03-29 13:07:49 > #include<stdio.h>
> int main()
> {
> float s;
> int w, m;
> while(1)
> {
> scanf("%f %d %d",&s,&w,&m);
> if(s==0) break;
> if(s<=4.5&&w>=150&&m>=200) printf("Wide Receiver ");
> if(s<=6.0&&w>=300&&m>=500) printf("Lineman ");
> if(s<=5.0&&w>=200&&m>=300) printf("Quarterback ");
> if(!(s<=4.5&&w>=150&&m>=200)&&!(s<=6.0&&w>=300&&m>=500)&&!(s<=5.0&&w>=200&&m>=300))
> printf("No Position");
> printf("\n");
> }
> return 0;
> }
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator