Submission #16603808


Source Code Expand

Copy
use proconio::input;

fn main() {
    input! {
        x: usize,
    };
    let d2 = x % 100;
    let c = d2 / 5 + if d2 % 5 != 0 { 1 } else { 0 };
    let ans = x >= (c * 100 + d2);
    println!("{}", if ans { "1" } else { "0" });
}

Submission Info

Submission Time
Task C - 100 to 105
User bouzuya
Language Rust (1.42.0)
Score 300
Code Size 234 Byte
Status
Exec Time 7 ms
Memory 2076 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 300 / 300
Status
× 2
× 22
Set Name Test Cases
Sample sample_01.txt, sample_02.txt
All in01.txt, in02.txt, in03.txt, in04.txt, in05.txt, in06.txt, in07.txt, in08.txt, in09.txt, in10.txt, in11.txt, in12.txt, in13.txt, in19.txt, in20.txt, in21.txt, in22.txt, in23.txt, in27.txt, in28.txt, sample_01.txt, sample_02.txt
Case Name Status Exec Time Memory
in01.txt 7 ms 1956 KB
in02.txt 1 ms 1860 KB
in03.txt 1 ms 1980 KB
in04.txt 1 ms 1896 KB
in05.txt 2 ms 1924 KB
in06.txt 1 ms 1920 KB
in07.txt 1 ms 1980 KB
in08.txt 2 ms 2040 KB
in09.txt 5 ms 1928 KB
in10.txt 1 ms 2040 KB
in11.txt 3 ms 1996 KB
in12.txt 1 ms 1964 KB
in13.txt 4 ms 1916 KB
in19.txt 2 ms 2076 KB
in20.txt 1 ms 1916 KB
in21.txt 1 ms 1860 KB
in22.txt 2 ms 2076 KB
in23.txt 1 ms 1952 KB
in27.txt 1 ms 1924 KB
in28.txt 3 ms 1908 KB
sample_01.txt 2 ms 1908 KB
sample_02.txt 1 ms 2004 KB