Submission #16786208


Source Code Expand

Copy
use proconio::input;

fn main() {
    input! {
        x: usize,
        y: usize,
    };
    let mut sum = 0;
    sum += match x {
        1 => 300_000,
        2 => 200_000,
        3 => 100_000,
        _ => 0,
    };
    sum += match y {
        1 => 300_000,
        2 => 200_000,
        3 => 100_000,
        _ => 0,
    };
    sum += if x == 1 && y == 1 { 400_000 } else { 0 };
    let ans = sum;
    println!("{}", ans);
}

Submission Info

Submission Time
Task A - DDCC Finals
User bouzuya
Language Rust (1.42.0)
Score 100
Code Size 432 Byte
Status AC
Exec Time 4 ms
Memory 2164 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 20
Set Name Test Cases
Sample sample_01.txt, sample_02.txt, sample_03.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, in14.txt, in15.txt, in16.txt, in17.txt, sample_01.txt, sample_02.txt, sample_03.txt
Case Name Status Exec Time Memory
in01.txt AC 4 ms 2064 KB
in02.txt AC 2 ms 1972 KB
in03.txt AC 1 ms 1908 KB
in04.txt AC 1 ms 1972 KB
in05.txt AC 1 ms 2064 KB
in06.txt AC 2 ms 2104 KB
in07.txt AC 1 ms 1948 KB
in08.txt AC 2 ms 1968 KB
in09.txt AC 2 ms 2056 KB
in10.txt AC 1 ms 2036 KB
in11.txt AC 1 ms 1948 KB
in12.txt AC 1 ms 1908 KB
in13.txt AC 1 ms 2064 KB
in14.txt AC 1 ms 2164 KB
in15.txt AC 3 ms 2064 KB
in16.txt AC 2 ms 1980 KB
in17.txt AC 1 ms 1956 KB
sample_01.txt AC 3 ms 2148 KB
sample_02.txt AC 1 ms 2008 KB
sample_03.txt AC 1 ms 2016 KB