Hdu 5347 MZL's chemistry (打表)
2016-07-13 20:59
344 查看
[code]:
#include<cstdio>
#include<cstring>
#include<algorithm>
using namespace std;
double a[100] = {0,1312
,2372.3
,520.2
,932
,800.6
,1086.5
,1402.3
,1313.9
,1681
,2080.7
,495.8
,737.7
,577.5
,786.5
,1011.8
,999.6
,1251.2
,1520.6
,0};
int main(){
int i,j;
a[35] = 1139.9;
a[36] = 1350.8;
a[53] = 1008.4;
a[54] = 1170.4;
a[85] = 890;
a[86] = 1037;
while(~scanf("%d%d",&i,&j)){
if(a[i]>a[j]) printf("FIRST BIGGER\n");
else printf("SECOND BIGGER\n");
}
return 0;
}
#include<cstdio>
#include<cstring>
#include<algorithm>
using namespace std;
double a[100] = {0,1312
,2372.3
,520.2
,932
,800.6
,1086.5
,1402.3
,1313.9
,1681
,2080.7
,495.8
,737.7
,577.5
,786.5
,1011.8
,999.6
,1251.2
,1520.6
,0};
int main(){
int i,j;
a[35] = 1139.9;
a[36] = 1350.8;
a[53] = 1008.4;
a[54] = 1170.4;
a[85] = 890;
a[86] = 1037;
while(~scanf("%d%d",&i,&j)){
if(a[i]>a[j]) printf("FIRST BIGGER\n");
else printf("SECOND BIGGER\n");
}
return 0;
}
相关文章推荐
- 安装Genymotion + Virtualbox 出现 “不能为虚拟电脑打开一个新任务 E_FAIL(0x80004005)”错误的解决办法
- 程序员的3年之痒改变的不止薪水(二)
- Valid Palindrome
- Hdu 5344 MZL's xor (杂)
- 朴素贝叶斯与贝叶斯网络
- Httpservlet cannot be resolved to a type的原因与解决方法
- 虚析构函数
- 朴素贝叶斯与贝叶斯网络
- java http post上传文件
- 校外实习-7.13
- Docker部署Tensorflow
- Tomcat优化
- html5---拖放demo----拖放图片
- 【华为OJ】求int型数据在内存中存储时1的个数
- Hello World
- MySQL或者MariaDB里面sql_mode的设置详解
- Tomcat优化
- 2.3.1 使用本地编译成功的镜像文件启动Android模拟器
- docker disk quota
- Swift-构造函数(一)