Submission #16652478


Source Code Expand

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 AC
Exec Time 6 ms
Memory 2188 KiB

Judge Result

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