当前位置:网站首页>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
边栏推荐
- What are instruction cycles, machine cycles, and clock cycles?
- A trinomial expression that causes a null pointer
- MySQL external connection, internal connection, self connection, natural connection, cross connection
- Uglifyjs compress JS
- 数据安全问题已成隐患,看vivo如何让“用户数据”重新披甲
- Deep learning notes - object detection and dataset + anchor box
- 深度学习笔记 —— 数据增广
- mysql5. 7. X data authorization leads to 1141
- COM in wine (2) -- basic code analysis
- 机器学习---线性回归
猜你喜欢

多线程基本概念(并发与并行、线程与进程)和入门案例
![[database] MySQL single table query](/img/27/99d174219109ea7a455cfdf55e0996.png)
[database] MySQL single table query

Set Chrome browser background to eye protection (eye escort / darkreader plug-in)
![[database] MySQL multi table query (I)](/img/c7/43167aa6169c24a8d9734032775335.png)
[database] MySQL multi table query (I)

MySQL - index

Summary of MySQL knowledge points

Unique primary key ID of tidb sub table -- solution to failure of sequence and Gorm to obtain primary key

The WebService interface writes and publishes calls to the WebService interface (2)

Field injection is not recommended using @ Autowired

Deep learning notes - semantic segmentation and data sets
随机推荐
Barcode generation and decoding, QR code generation and decoding
Some experience in using MySQL / tidb database [slowly updating...]
scp命令详解
Unity C# 网络学习(四)
DIY 一个 Excel 版的子网计算器
leetcode——启发式搜索
Basic concepts of multithreading (concurrency and parallelism, threads and processes) and entry cases
The difference between static pipeline and dynamic pipeline
机器学习---线性回归
configmap
深度学习笔记 —— 微调
Deep learning notes - object detection and dataset + anchor box
【数据库】表的查看、修改和删除
Jupyter notebook crawling web pages
Mac 进入mysql终端命令
Get the number of days between dates, get the Chinese date, get the date of the next Monday of the date, get the working day, get the rest day
#define 定义常量和宏,指针和结构体
Sword finger offer: the path with a certain value in the binary tree (backtracking)
MySQL memo (for your own query)
Detailed explanation of the differences between TCP and UDP