当前位置:网站首页>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;
}
边栏推荐
- Mysql多表查询 #子查询
- Recent learning summary
- Zzuli:1049 square sum and cubic sum
- 光猫超级账号密码、宽带账号密码 获取
- Find the sum of the elements of each row of the matrix
- Stop asking yourself if you are suitable for software testing
- NPM install is stuck with various strange errors of node NPY
- 【7.3】146. LRU caching mechanism
- String substitution
- 数学常数表 by q779
猜你喜欢

To improve efficiency or increase costs, how should developers understand pair programming?

Use of form text box (I) select text

Showmebug entered Tencent conference, opening the era of professional technical interview

Pyqt interface production (login + jump page)

Accelerating strategy learning using parallel differentiable simulation

一文了解微分段应用场景与实现机制

使用并行可微模拟加速策略学习

7-18 finding the single root of polynomial by dichotomy

Dllexport et dllimport

Programming language: the essence of type system
随机推荐
7-1 positive integer a+b (15 points)
Sword finger offer 28 Symmetric binary tree
tonybot 人形机器人 查看端口并对应端口 0701
tonybot 人形机器人 红外遥控玩法 0630
MySQL multi table query subquery
Solr series of full-text search engines - basic principles of full-text search
Zzuli:1055 rabbit reproduction
tonybot 人形機器人 紅外遙控玩法 0630
dllexport和dllimport
Thread. Sleep and timeunit SECONDS. The difference between sleep
Zzuli: cumulative sum of 1050 factorials
adc128s022 ADC verilog设计实现
How Facebook moves instagram from AWS to its own server
Puzzle (016.4) domino effect
Protobuf and grpc
Use of constraintlayout
Find specified characters
7-6 mixed type data format input
Zzuli:1059 highest score
puzzle(016.4)多米诺效应