当前位置:网站首页>NOI OPENJUDGE 1.3(06)
NOI OPENJUDGE 1.3(06)
2022-07-03 14:37:00 【two billion seven hundred and fifty-eight million seven hundred】
06: The mortality rate of influenza A epidemic
Total time limit :
1000ms
Memory limit :
65536kB
describe
Swine flu is not terrible , In China, , Its mortality rate is not very high . Please according to the deadline 2009 year 12 month 22 The number of confirmed cases and deaths of swine flu reported by all provinces in Japan , Calculate the mortality rate of influenza A in all provinces .
Input
Enter only one line , There are two integers , The first is the number of confirmed cases , The second is the number of deaths .
Output
Output only one line , H1N1 mortality , Output as percentage , Accurate to the decimal point 3 position .
The sample input
10433 60
Sample output
0.575%
Analysis and code :[ author : Lu changheel ]:
analysis :
There should be nothing to analyze , At most, pay attention to the data type of the input number , And the implementation method of keeping decimals
Code :
#include <iomanip>
#include <iostream>
using namespace std;
int main()
{
double qz;
double sw;
cin>>qz>>sw;
double swl=(sw/qz)*100;
cout<<setprecision(3)<<swl;
cout<<'%';
return 0;
}
边栏推荐
- Accelerating strategy learning using parallel differentiable simulation
- US stock listing of polar: how can the delivery of 55000 units support the valuation of more than 20billion US dollars
- Etcd cluster permission management and account password usage
- Mongodb index
- 7-3 count the number of words in a line of text
- Tonybot humanoid robot checks the port and corresponds to port 0701
- 556. 下一个更大元素 III : 简单构造模拟题
- Why is this error reported when modifying records in the database
- 2021-10-16 initial programming
- String sort
猜你喜欢

Paper sharing: generating playful palettes from images

分布式事务(Seata) 四大模式详解

Detailed explanation of four modes of distributed transaction (Seata)

基因家族特征分析 - 染色体定位分析

X86 assembly language - Notes from real mode to protected mode

Bucket sorting in C language

Talking about part of data storage in C language

NPM install is stuck with various strange errors of node NPY

tonybot 人形机器人 首次开机 0630

亚马逊、速卖通、Lazada、Shopee、eBay、wish、沃尔玛、阿里国际、美客多等跨境电商平台,测评自养号该如何利用产品上新期抓住流量?
随机推荐
光猫超级账号密码、宽带账号密码 获取
Dllexport and dllimport
7-9 one way in, two ways out (25 points)
Timecho of Tianmou technology completed an angel round financing of nearly 100 million yuan to create a native timing database of the industrial Internet of things
Mysql多表查询 #子查询
论文分享:Generating Playful Palettes from Images
The mail function of LNMP environment cannot send mail
Find specified characters
JVM garbage collector
Zzuli:1043 max
【北大青鸟昌平校区】互联网行业中,哪些岗位越老越吃香?
Happy capital new dual currency fund nearly 4billion yuan completed its first account closing
7-24 reduction of the simplest fraction (rolling Division)
US stock listing of polar: how can the delivery of 55000 units support the valuation of more than 20billion US dollars
Zhonggan micro sprint technology innovation board: annual revenue of 240million, net loss of 17.82 million, proposed to raise 600million
Zzuli:1055 rabbit reproduction
NFT new opportunity, multimedia NFT aggregation platform okaleido will be launched soon
7-2 and then what time (15 minutes)
retrofit
Zhejiang University Edition "C language programming (4th Edition)" topic set reference ideas set