当前位置:网站首页>7-4 到底是不是太胖了 (10 分)PTA
7-4 到底是不是太胖了 (10 分)PTA
2022-04-22 05:50:00 【FOWng_lp】

AC Code
#include<cstdio>
#include<iostream>
using namespace std;
typedef long long ll;
int main(){
double ans,h,w;
int n;
cin >> n;
while(n--){
cin >> h >> w;
ans = (h-100)*0.9*2;
if(w >= ans*11/10){
cout << "You are tai pang le!" << endl;
}
else if(w <= ans*9/10) puts("You are tai shou le!");
else puts("You are wan mei!");
}
return 0;
}
//I Love GPLT
其中 *11/10 和 *9/10 写成 *1.1和 *0.9会出错
很离谱
版权声明
本文为[FOWng_lp]所创,转载请带上原文链接,感谢
https://blog.csdn.net/FOWng_lp/article/details/115975185
边栏推荐
猜你喜欢
随机推荐
If you need to switch directories frequently
MYSQL系列-Linux上安装mysql 5.6.27,以及常见问题解决
wbpack配置 生产-开发 环境
thinkphp5怎么隐藏index.php入口文件
FileReader API 文件操作
Fastapi (III)
JS waits for asynchronous execution to complete before executing
重读Scrapy:Spider篇_CrawlSpider的使用分析
异步编程 && 协程asyncio
2021-09-27
Graylog服务器rpm安装
【点击某一行后背景颜色发生改变】
redis 集群一 · 主从模式
Introduction to redis
log4j 配置文件详细描述
supervisord
re将Form表单转json
Mysql gap lock引起的一个问题
Redis指令
MySQL的InnoDB存储引擎








