当前位置:网站首页>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;
}
边栏推荐
- 7-3 count the number of words in a line of text
- 分布式事务(Seata) 四大模式详解
- 7-24 reduction of the simplest fraction (rolling Division)
- puzzle(016.4)多米诺效应
- Find specified characters
- Zzuli:1048 factorial table
- tonybot 人形机器人 红外遥控玩法 0630
- Tonybot humanoid robot checks the port and corresponds to port 0701
- Address book sorting
- 556. 下一个更大元素 III : 简单构造模拟题
猜你喜欢
Dllexport and dllimport
Talking about part of data storage in C language
Pyqt interface production (login + jump page)
Frequently asked questions: PHP LDAP_ add(): Add: Undefined attribute type in
tonybot 人形机器人 定距移动 代码编写玩法
编程语言:类型系统的本质
Luogu p5018 [noip2018 popularization group] symmetric binary tree problem solution
提高效率 Or 增加成本,开发人员应如何理解结对编程?
Adc128s022 ADC Verilog design and Implementation
Puzzle (016.4) domino effect
随机推荐
Common commands for getting started with mongodb database
Zzuli:1057 prime number determination
Find the sum of the elements of each row of the matrix
Tonybot humanoid robot checks the port and corresponds to port 0701
Talking about part of data storage in C language
Analysis of gene family characteristics - chromosome location analysis
Ultra simple mobile map development
1017 a divided by B (20 points)
China PETG market forecast and Strategic Research Report (2022 Edition)
Zzuli:1058 solving inequalities
Recent learning summary
洛谷P5018 [NOIP2018 普及组] 对称二叉树 题解
2021-10-16 initial programming
LNMP环境mail函数不能发送邮件解决
Common shortcut keys in PCB
Zhonggan micro sprint technology innovation board: annual revenue of 240million, net loss of 17.82 million, proposed to raise 600million
Zzuli:1047 logarithmic table
7-16 find the set of integers that meet the given conditions
Zzuli:1054 monkeys eat peaches
Tonybot humanoid robot starts for the first time 0630