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 |
水一下,水水更健康#include <cstdio> int main() { float speed; int weight,strength; while(scanf("%f%d%d",&speed,&weight,&strength)!=EOF && (speed!=0 || weight!=0 || strength!=0)) { if(speed<=4.5 && weight>=150 && strength>=200)printf("Wide Receiver\n"); else if(speed<=6.0 && weight>=300 && strength>=500)printf("Lineman\n"); else if(speed<=5.0 && weight>=200 && strength>=300)printf("Wide Receiver Quarterback\n"); else printf("No positions\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