Submission #20520311


Source Code Expand

use proconio::{fastout, input};

#[fastout]
fn main() {
    input! {in_a: f32, in_b: f32};
    println!("{:.4}", (in_a - in_b) / in_a * 100.0);
}

Submission Info

Submission Time
Task A - Discount
User takedarts
Language Rust (1.42.0)
Score 100
Code Size 146 Byte
Status AC
Exec Time 5 ms
Memory 2220 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 13
Set Name Test Cases
Sample 01_sample.txt, 02_sample.txt, 03_sample.txt
All 01_sample.txt, 02_sample.txt, 03_sample.txt, 04_hand.txt, 05_hand.txt, 06_hand.txt, 07_random.txt, 08_random.txt, 09_random.txt, 10_random.txt, 11_random.txt, 12_random.txt, 13_random.txt
Case Name Status Exec Time Memory
01_sample.txt AC 5 ms 2220 KiB
02_sample.txt AC 2 ms 2152 KiB
03_sample.txt AC 2 ms 2108 KiB
04_hand.txt AC 2 ms 2184 KiB
05_hand.txt AC 2 ms 2188 KiB
06_hand.txt AC 2 ms 2100 KiB
07_random.txt AC 1 ms 2168 KiB
08_random.txt AC 1 ms 2040 KiB
09_random.txt AC 1 ms 2184 KiB
10_random.txt AC 2 ms 2132 KiB
11_random.txt AC 1 ms 2076 KiB
12_random.txt AC 2 ms 2120 KiB
13_random.txt AC 2 ms 2140 KiB