Submission #16810062


Source Code Expand

Copy
use proconio::input;

fn main() {
    input! {
        n: i64,
        a: i64,
        b: i64,
    };
    let ans = if n <= 5 { b * n } else { a * (n - 5) + b * 5 };
    println!("{}", ans);
}

Submission Info

Submission Time
Task A - ダイナミックなポーズ
User bouzuya
Language Rust (1.42.0)
Score 100
Code Size 193 Byte
Status AC
Exec Time 6 ms
Memory 2112 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 2
AC × 20
Set Name Test Cases
Sample sample_01.txt, sample_02.txt
All sample_01.txt, sample_02.txt, subtask1_01.txt, subtask1_02.txt, subtask1_03.txt, subtask1_04.txt, subtask1_05.txt, subtask1_06.txt, subtask1_07.txt, subtask1_08.txt, subtask1_09.txt, subtask1_10.txt, subtask1_11.txt, subtask1_12.txt, subtask1_13.txt, subtask1_14.txt, subtask1_15.txt, subtask1_16.txt, subtask1_17.txt, subtask1_18.txt
Case Name Status Exec Time Memory
sample_01.txt AC 6 ms 1952 KB
sample_02.txt AC 1 ms 2008 KB
subtask1_01.txt AC 1 ms 2020 KB
subtask1_02.txt AC 1 ms 2076 KB
subtask1_03.txt AC 2 ms 1928 KB
subtask1_04.txt AC 1 ms 1968 KB
subtask1_05.txt AC 1 ms 1948 KB
subtask1_06.txt AC 2 ms 1980 KB
subtask1_07.txt AC 3 ms 2016 KB
subtask1_08.txt AC 1 ms 2112 KB
subtask1_09.txt AC 2 ms 2080 KB
subtask1_10.txt AC 2 ms 2076 KB
subtask1_11.txt AC 1 ms 2048 KB
subtask1_12.txt AC 2 ms 1992 KB
subtask1_13.txt AC 2 ms 1944 KB
subtask1_14.txt AC 2 ms 1992 KB
subtask1_15.txt AC 1 ms 2112 KB
subtask1_16.txt AC 1 ms 1980 KB
subtask1_17.txt AC 3 ms 1884 KB
subtask1_18.txt AC 3 ms 2000 KB