Submission #52982443


Source Code Expand

use proconio::input;

fn main() {
    input! {
        an: [i32; 9],
        bn: [i32; 8],
    }

    let sum_a = an.iter().sum::<i32>();
    let sum_b = bn.iter().sum::<i32>();

    println!("{}", sum_a - sum_b + 1);
}

Submission Info

Submission Time
Task A - The bottom of the ninth
User flowert
Language Rust (rustc 1.70.0)
Score 100
Code Size 233 Byte
Status AC
Exec Time 1 ms
Memory 1944 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 2
AC × 12
Set Name Test Cases
Sample example_00.txt, example_01.txt
All example_00.txt, example_01.txt, hand_00.txt, hand_01.txt, hand_02.txt, random_00.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt
Case Name Status Exec Time Memory
example_00.txt AC 1 ms 1904 KiB
example_01.txt AC 0 ms 1868 KiB
hand_00.txt AC 0 ms 1844 KiB
hand_01.txt AC 0 ms 1944 KiB
hand_02.txt AC 0 ms 1868 KiB
random_00.txt AC 0 ms 1876 KiB
random_01.txt AC 0 ms 1940 KiB
random_02.txt AC 0 ms 1904 KiB
random_03.txt AC 0 ms 1944 KiB
random_04.txt AC 0 ms 1876 KiB
random_05.txt AC 0 ms 1940 KiB
random_06.txt AC 0 ms 1936 KiB