Submission #16652478


Source Code Expand

Copy
use proconio::input;

fn main() {
    input! {
        n: usize,
    };
    let ans = std::cmp::min(n / 10 * 100 + n % 10 * 15, (n + 10 - 1) / 10 * 100);
    println!("{}", ans);
}

Submission Info

Submission Time
Task A - たこ焼き買えるかな?
User bouzuya
Language Rust (1.42.0)
Score 100
Code Size 181 Byte
Status
Exec Time 6 ms
Memory 2188 KB

Judge Result

Set Name All
Score / Max Score 100 / 100
Status
× 53
Set Name Test Cases
All 00_sample_01.txt, 00_sample_02.txt, 00_sample_03.txt, 01_all_01.txt, 01_all_02.txt, 01_all_03.txt, 01_all_04.txt, 01_all_05.txt, 01_all_06.txt, 01_all_07.txt, 01_all_08.txt, 01_all_09.txt, 01_all_10.txt, 01_all_11.txt, 01_all_12.txt, 01_all_13.txt, 01_all_14.txt, 01_all_15.txt, 01_all_16.txt, 01_all_17.txt, 01_all_18.txt, 01_all_19.txt, 01_all_20.txt, 01_all_21.txt, 01_all_22.txt, 01_all_23.txt, 01_all_24.txt, 01_all_25.txt, 01_all_26.txt, 01_all_27.txt, 01_all_28.txt, 01_all_29.txt, 01_all_30.txt, 01_all_31.txt, 01_all_32.txt, 01_all_33.txt, 01_all_34.txt, 01_all_35.txt, 01_all_36.txt, 01_all_37.txt, 01_all_38.txt, 01_all_39.txt, 01_all_40.txt, 01_all_41.txt, 01_all_42.txt, 01_all_43.txt, 01_all_44.txt, 01_all_45.txt, 01_all_46.txt, 01_all_47.txt, 01_all_48.txt, 01_all_49.txt, 01_all_50.txt
Case Name Status Exec Time Memory
00_sample_01.txt 6 ms 2048 KB
00_sample_02.txt 2 ms 2092 KB
00_sample_03.txt 2 ms 2080 KB
01_all_01.txt 1 ms 2080 KB
01_all_02.txt 3 ms 1896 KB
01_all_03.txt 1 ms 2128 KB
01_all_04.txt 1 ms 2088 KB
01_all_05.txt 2 ms 2052 KB
01_all_06.txt 1 ms 2048 KB
01_all_07.txt 3 ms 2060 KB
01_all_08.txt 1 ms 2028 KB
01_all_09.txt 2 ms 2080 KB
01_all_10.txt 1 ms 1908 KB
01_all_11.txt 1 ms 2124 KB
01_all_12.txt 1 ms 1980 KB
01_all_13.txt 1 ms 1908 KB
01_all_14.txt 1 ms 2080 KB
01_all_15.txt 2 ms 2012 KB
01_all_16.txt 2 ms 1940 KB
01_all_17.txt 1 ms 2016 KB
01_all_18.txt 1 ms 2052 KB
01_all_19.txt 1 ms 2064 KB
01_all_20.txt 1 ms 2048 KB
01_all_21.txt 2 ms 2188 KB
01_all_22.txt 1 ms 2040 KB
01_all_23.txt 1 ms 2112 KB
01_all_24.txt 1 ms 2024 KB
01_all_25.txt 3 ms 2084 KB
01_all_26.txt 2 ms 2032 KB
01_all_27.txt 1 ms 1968 KB
01_all_28.txt 1 ms 1980 KB
01_all_29.txt 2 ms 2020 KB
01_all_30.txt 1 ms 2088 KB
01_all_31.txt 2 ms 1976 KB
01_all_32.txt 1 ms 2076 KB
01_all_33.txt 1 ms 2092 KB
01_all_34.txt 3 ms 2060 KB
01_all_35.txt 2 ms 2168 KB
01_all_36.txt 1 ms 2008 KB
01_all_37.txt 2 ms 2028 KB
01_all_38.txt 1 ms 2028 KB
01_all_39.txt 2 ms 2120 KB
01_all_40.txt 1 ms 2096 KB
01_all_41.txt 1 ms 2028 KB
01_all_42.txt 2 ms 2016 KB
01_all_43.txt 1 ms 2084 KB
01_all_44.txt 2 ms 2016 KB
01_all_45.txt 2 ms 1968 KB
01_all_46.txt 1 ms 2052 KB
01_all_47.txt 1 ms 2012 KB
01_all_48.txt 1 ms 2056 KB
01_all_49.txt 1 ms 1980 KB
01_all_50.txt 2 ms 2104 KB