Submission #16603778


Source Code Expand

Copy
use proconio::input;

fn main() {
    input! {
        n: usize,
    };
    let x = n * 100 / 108;
    for x_i in x.saturating_sub(1)..=x + 1 {
        if x_i * 108 / 100 == n {
            println!("{}", x_i);
            return;
        }
    }
    println!(":(");
}

Submission Info

Submission Time
Task B - Tax Rate
User bouzuya
Language Rust (1.42.0)
Score 200
Code Size 269 Byte
Status
Exec Time 4 ms
Memory 2084 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
× 3
× 18
Set Name Test Cases
Sample sample-01.txt, sample-02.txt, sample-03.txt
All in01.txt, in06.txt, in07.txt, in08.txt, in09.txt, in10.txt, in11.txt, in12.txt, in13.txt, in14.txt, in15.txt, in19.txt, in20.txt, in21.txt, in22.txt, sample-01.txt, sample-02.txt, sample-03.txt
Case Name Status Exec Time Memory
in01.txt 2 ms 2028 KB
in06.txt 1 ms 1928 KB
in07.txt 2 ms 2000 KB
in08.txt 2 ms 2012 KB
in09.txt 1 ms 2024 KB
in10.txt 1 ms 1964 KB
in11.txt 4 ms 2076 KB
in12.txt 1 ms 1968 KB
in13.txt 1 ms 1960 KB
in14.txt 4 ms 2080 KB
in15.txt 2 ms 2024 KB
in19.txt 1 ms 2068 KB
in20.txt 2 ms 1892 KB
in21.txt 2 ms 2084 KB
in22.txt 2 ms 2016 KB
sample-01.txt 1 ms 1948 KB
sample-02.txt 1 ms 1896 KB
sample-03.txt 1 ms 1960 KB