Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

呵呵,过100了,发个庆帖!

Posted by jackch at 2006-09-29 21:59:29 on Problem 2070
#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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator