| ||||||||||
| 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 | |||||||||
呵呵,过100了,发个庆帖!#include<iostream>
#include<string.h>
using namespace std;
int main()
{
double s,w,l;
while(cin>>s>>w>>l&&s*w*l!=0)
{
char ss[100]="";
if(s<=4.5&&w>=150&&l>=200)strcat(ss," Wide Receiver");
if(s<=6.0&&w>=300&&l>=500)strcat(ss," Lineman");
if(s<=5.0&&w>=200&&l>=300)strcat(ss," Quarterback");
if(strcmp(ss,"")==0)cout<<"No positions"<<endl;
else
{for(int i=1;i<50;++i)cout<<ss[i];cout<<endl;}
}
return 0;
}
Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator