poj2070 Filling Out the Team
来源:互联网 发布:nginx下载 linux 编辑:程序博客网 时间:2024/05/20 14:26
读懂题,基本就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
- POJ2070 Filling Out the Team
- POJ2070浅析------Filling Out the Team
- zoj2321 Filling Out the Team
- zoj 2321 Filling Out the Team
- zoj2321 Filling Out the Team水题
- ZOJ 2321 Filling Out the Team
- zoj 2321 Filling Out the Team
- poj 2070 Filling Out the Team
- HOJ 1746 Filling Out the Team
- ZOJ 2321 Filling Out the Team
- poj 2070 Filling Out the Team
- POJ 2070 Filling Out the Team(水题)
- TOJ 1825.Filling Out the Team
- POJ 2070 Filling Out the Team G++
- POJ 2070 Filling Out the Team(水~)
- POJ 2070 Filling Out the Team(我的水题之路——double比较)
- poj2070
- git base
- 汇编语言中的CPSR 和 SPSR
- c#窗口位置相关的细节
- 学习第二天
- net-snmp学习笔记- trap
- poj2070 Filling Out the Team
- iOS系统Crash文件分析方法
- 如何硬盘安装window 7系统
- centos 设置yum为网易的镜像
- win32应用程序中进程间通信方法分析与比较
- MFC加载位图和图标
- 黑马程序员——继承
- C#模拟web服务器
- iOS应用崩溃日志揭秘