首页 >

疫情死亡率

#include<iostream>;
#include<iomanip>;
using namespace std;
int main()
{
    int c;
    int d;
    cin >> c >> d;
    cout <<fixed<<setprecision(3)<< ((float)d / c) * 100 << "%";
    return 0;
}
c,d=map(int,input().split())
res=d/c * 100 
print(format(res,'.3f')+'%')

发表于 2025-06-23 20:18:50 回复(0)
a,b=input().split()
c=int(b)/int(a)
print("{:.3%}".format(c))

发表于 2025-06-13 15:41:05 回复(0)
        Scanner in = new Scanner(System.in);
        int c = in.nextInt();
        int d = in.nextInt();
        double s = 100.0*d/c;
        System.out.println(String.format("%.3f%%",s));

发表于 2025-08-07 15:13:24 回复(0)
Scanner in = new Scanner(System.in);
double c = in.nextDouble();
double d = in.nextDouble();
System.out.println(String.format("%.3f%%",d/c*100));
发表于 2025-08-06 02:32:49 回复(0)

c,d=map(int, input().split())

f=(d/c)*100

print(f"{f:.3f}"+'%')

发表于 2025-08-03 09:59:22 回复(0)
a,b = map(int,input().split())
print(f"{(b/a)*100:.3f}%")
发表于 2025-08-02 17:30:48 回复(0)
#include<iostream>;
#include<iomanip>;
using namespace std;
int main()
{
    int c;
    int d;
    cin >> c >> d;
    cout <<fixed<<setprecision(3)<< ((float)d / c) * 100 << "%";
    return 0;
}
发表于 2025-07-29 16:37:37 回复(0)
x=input()
c,d=x.split()
t=int(d)/int(c)
print(f"{t*100:.3f}%")

发表于 2025-07-19 15:43:51 回复(0)
import java.util.Scanner;

// 注意类名必须为 Main, 不要有任何 package xxx 信息
public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
       
        int a = in.nextInt();
        int b = in.nextInt();
        //double c = (double)b/a*100;
        System.out.printf("%.3f%%",(double)b/a*100);

    }
}
发表于 2025-07-18 08:57:39 回复(0)
use std::io;

fn main() {
    let mut stdin = String::new();

    io::stdin()
        .read_line(&mut stdin)
        .expect("");

    let mut doro = stdin
        .split_whitespace()
        .map(|s| s.parse::<f64>().expect(""));

    let mut c = doro.next().expect("");
    let mut d = doro.next().expect("");

    let mut dead = (d / c) * 100.0; 

    let m = format!("{:.3}%", dead);
    println!("{}", m);
}
发表于 2025-07-17 17:54:28 回复(0)
a = list(map(int, input().split()))
b = a[1] / a[0]
print(f"{b}%")
发表于 2025-07-16 16:57:55 回复(0)
c , d = map(int, input().split())
print(f"{d / c * 100:.3f}%")
发表于 2025-07-13 03:17:20 回复(0)
c,d = input().split()
rat = int(d)/int(c)*100
print('%.3f' % rat + '%')
发表于 2025-07-10 10:43:48 回复(0)
import java.util.Scanner;

// 注意类名必须为 Main, 不要有任何 package xxx 信息
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
long c = sc.nextLong();
long d = sc.nextLong();
sc.close();

double rate = (double)d / c * 100.0;

System.out.printf("%.3f%%", rate);
}
}
发表于 2025-07-05 17:37:29 回复(0)
c,d = map(int,input().split())
print(f"{100*d/c:.3f}"+'%')
发表于 2025-06-20 19:36:31 回复(0)
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);
    }
}()

发表于 2025-06-15 23:48:05 回复(0)
#include <stdio.h>

int main() {
    int a, b;
    scanf("%d %d", &a, &b);
    float c = 100.0*b/a;//注意100.0而不能用100,这样等号右边计算结果才能是浮点数
    printf("%.3f%\n", c);
    return 0;
}
发表于 2025-06-12 16:45:21 回复(1)
#include <ios>
#include <iostream>
#include "iomanip"
using namespace std;

int main() {
    double a, b;//为什么用int不行
    cin>>a>>b;
    double c=b/a;
    cout<<fixed<<setprecision(3)<<c*100<<"%"<<endl;
}
求解·为什么a和b双精度可以int就不行,输入的不是整形吗
发表于 2025-06-07 13:57:31 回复(1)
#include <iomanip>
#include <iostream>
using namespace std;

int main() {
    double a, b;
    double rate = 0;
    while (cin >> a >> b) { // 注意 while 处理多个 case
       rate = b/a;
    }

    cout <<fixed << setprecision(3) << rate * 100 << "%" << endl;
}
// 64 位输出请用 printf("%lld")
发表于 2025-06-03 19:07:45 回复(0)
a,b = map(int, input().split())
print("%.3f"%(b/a*100)+"%")
发表于 2025-05-27 19:02:21 回复(0)