输入一行两个整数
![]()
,分别表示某种病毒造成的确诊人数和死亡人数。
输出死亡率,以百分数形式表示,结果保留小数点后三位,并在末尾加上百分号
。
10433 280
2.684%
const rl = require("readline").createInterface({ input: process.stdin }); var iter = rl[Symbol.asyncIterator](); const readline = async () => (await iter.next()).value; void async function () { // Write your code here while(line = await readline()){ let tokens = line.split(' '); let a = parseInt(tokens[0]); let b = parseInt(tokens[1]); let radioNum = null; radioNum = ((b/a)*100).toFixed(3) + '%'; console.log(radioNum); } }()