当前位置:网站首页>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;
}
边栏推荐
- Raft agreement
- Mongodb index
- Doris学习笔记之数据表的创建
- 洛谷P5536 【XR-3】核心城市 题解
- 关于敏捷的一些概念
- Zzuli:1046 product of odd numbers
- Zhonggan micro sprint technology innovation board: annual revenue of 240million, net loss of 17.82 million, proposed to raise 600million
- NFT new opportunity, multimedia NFT aggregation platform okaleido will be launched soon
- [qingniaochangping campus of Peking University] in the Internet industry, which positions are more popular as they get older?
- 7-17 crawling worms (break exercise)
猜你喜欢

修改数据库中的记录为什么报这个错

Tailing rushes to the scientific and Technological Innovation Board: it plans to raise 1.3 billion, and Xiaomi Changjiang is the shareholder

tonybot 人形機器人 紅外遙控玩法 0630

Use of form text box (I) select text

retrofit

Why is this error reported when modifying records in the database

Zzuli:1053 sine function

Bibit pharmaceutical rushed to the scientific innovation board: annual revenue of 970000, loss of 137million, proposed to raise 2billion

Frequently asked questions: PHP LDAP_ add(): Add: Undefined attribute type in

Zhonggan micro sprint technology innovation board: annual revenue of 240million, net loss of 17.82 million, proposed to raise 600million
随机推荐
[qingniaochangping campus of Peking University] in the Internet industry, which positions are more popular as they get older?
Address book sorting
Sub-GHz无线解决方案Z-Wave 800 系列ZG23 soc和ZGM230S模块
tonybot 人形机器人 定距移动 代码编写玩法
dllexport和dllimport
Zzuli:1054 monkeys eat peaches
Puzzle (016.3) is inextricably linked
Table of mathematical constants by q779
Luogu p5536 [xr-3] core city solution
Zzuli:1056 lucky numbers
Frequently asked questions: PHP LDAP_ add(): Add: Undefined attribute type in
Creation of data table of Doris' learning notes
【7.3】146. LRU caching mechanism
分布式事务(Seata) 四大模式详解
Zzuli:1044 failure rate
Tailing rushes to the scientific and Technological Innovation Board: it plans to raise 1.3 billion, and Xiaomi Changjiang is the shareholder
7-4 BCD decryption (10 points)
ConstraintLayout 的使用
动态获取权限
How Facebook moves instagram from AWS to its own server