poj2070 Filling Out the Team
2013-07-12 13:44
363 查看
读懂题,基本就AC了~~~具体代码如下:
#include<stdio.h>#include<stdlib.h>#include<math.h>int main(){double a;int b,c;int temp1,temp2,temp3;while(~scanf("%lf %d %d",&a,&b,&c)&&a&&b&&c){temp1 = 0;temp2 = 0;temp3 = 0;if(a<=4.5&&b>=150&&c>=200) {printf("Wide Receiver ");temp1 = 1;}if(a<=6.0&&b>=300&&c>=500) {printf("Lineman ");temp2 = 1;}if(a<=5.0&&b>=200&&c>=300) {printf("Quarterback ");temp3 = 1;}if((!temp1)&&(!temp2)&&(!temp3))printf("No positions");printf("\n");}return 0;
相关文章推荐
- POJ2070 Filling Out the Team
- POJ 2070 Filling Out the Team(水题)
- zoj 2321 Filling Out the Team
- 2321_Filling Out the Team(比大小题,每次输出最后不得有空格)
- poj 2070 Filling Out the Team
- POJ2070浅析------Filling Out the Team
- HOJ 1746 Filling Out the Team
- POJ 2070 Filling Out the Team(水~)
- POJ 2070 Filling Out the Team(我的水题之路——double比较)
- POJ 2070 Filling Out the Team G++
- poj 2070 Filling Out the Team
- ZOJ Problem Set – 2321 Filling Out the Team
- zoj2321 Filling Out the Team水题
- poj 2070 Filling Out the Team
- ZOJ 2321 Filling Out the Team
- TOJ 1825.Filling Out the Team
- instances) and similar IP handles (that may additionally report that one particular person is filling out the prospect kind vari
- out of the box
- Hdu 4251 The Famous ICPC Team Again
- The Windows SDK team is proud to announce that the RTM release of the Microsoft Windows SDK for Windows Server 2008 and .NET Fra