当前位置:网站首页>7-4 is it too fat (10 points) PTA
7-4 is it too fat (10 points) PTA
2022-04-23 05:08: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
among *11/10 and *9/10 It's written in *1.1 and *0.9 Will make mistakes
It's quite out of line
版权声明
本文为[FOWng_ lp]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220549345516.html
边栏推荐
- 信息学奥赛一本通 1955:【11NOIP普及组】瑞士轮 | OpenJudge 4.1 4363:瑞士轮 | 洛谷 P1309 [NOIP2011 普及组] 瑞士轮
- [database] MySQL multi table query (I)
- Summary of MySQL knowledge points
- C. Tree infection (simulation + greed)
- Day.js 常用方法
- The WebService interface writes and publishes calls to the WebService interface (I)
- Logrus set log format and output function name
- Innovation training (V) mid term inspection
- Independent station operation | Facebook marketing artifact - chat robot manychat
- 【数据库】MySQL多表查询(一)
猜你喜欢
[winui3] write an imitation Explorer file manager
[database] MySQL multi table query (I)
MySQL memo (for your own query)
The 8 diagrams let you see the execution sequence of async / await and promise step by step
Use the built-in function of win to transfer files between two computers in the same LAN (the speed is the same as that between local disks)
MySQL foreign key constraint
Define defines constants and macros, pointers and structures
MySQL external connection, internal connection, self connection, natural connection, cross connection
多线程基本概念(并发与并行、线程与进程)和入门案例
Uglifyjs compress JS
随机推荐
[WinUI3]編寫一個仿Explorer文件管理器
DIY is an excel version of subnet calculator
Use model load_ state_ Attributeerror appears when dict(): 'STR' object has no attribute 'copy‘
Deep learning notes - fine tuning
Sword finger offer: push in and pop-up sequence of stack
JS determines whether the numeric string contains characters
【数据库】表的查看、修改和删除
L2-011 play binary tree (build tree + BFS)
Logrus set log format and output function name
Redis lost key and bigkey
Field injection is not recommended using @ Autowired
Redis persistence
Backup MySQL database with Navicat
Progress of innovation training (IV)
多线程基本概念(并发与并行、线程与进程)和入门案例
The WebService interface writes and publishes calls to the WebService interface (2)
Summary of R & D technology
Sword finger offer: the median in the data stream (priority queue large top heap small top heap leetcode 295)
calendar. Pit point of getactualmaximum (calendar. Day_of_month)
MySQL - index