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<iostream.h> void main(){ float s; int a,b; while(cin>>s>>a>>b){ if(s==0&&a==0&&b==0) break; if(s<4.5 && a>=150 && b>=200) cout<<"Wide Receiver "; if(s<6.0 && a>=300 && b>=500) cout<<"Lineman "; if(s<5.0 && a>=200 && b>=300) cout<<"Quarterback "; if((!(s<4.5 && a>=150 && b>=200))&&(!(s<6.0 && a>=300 && b>=500))&&(!(s<5.0 && a>=200 && b>=300))) cout<<"No Position"; cout<<endl; } } Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator