提出 #52834346


ソースコード 拡げる

fn main() {
    let mut a = String::new();
    std::io::stdin().read_line(&mut a).ok();
    let a: Vec<usize> = a.trim().split_whitespace().map(|s| s.parse().unwrap()).collect();
    let mut b = String::new();
    std::io::stdin().read_line(&mut b).ok();
    let b: Vec<usize> = b.trim().split_whitespace().map(|s| s.parse().unwrap()).collect();

    let asum = a.iter().sum::<usize>();
    let bsum = b.iter().sum::<usize>();
    println!("{}", asum-bsum+1);
}

提出情報

提出日時
問題 A - The bottom of the ninth
ユーザ phspls
言語 Rust (rustc 1.70.0)
得点 100
コード長 474 Byte
結果 AC
実行時間 1 ms
メモリ 1944 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 100 / 100
結果
AC × 2
AC × 12
セット名 テストケース
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
ケース名 結果 実行時間 メモリ
example_00.txt AC 1 ms 1844 KiB
example_01.txt AC 1 ms 1928 KiB
hand_00.txt AC 1 ms 1780 KiB
hand_01.txt AC 1 ms 1900 KiB
hand_02.txt AC 1 ms 1852 KiB
random_00.txt AC 1 ms 1916 KiB
random_01.txt AC 0 ms 1852 KiB
random_02.txt AC 1 ms 1904 KiB
random_03.txt AC 1 ms 1932 KiB
random_04.txt AC 0 ms 1944 KiB
random_05.txt AC 1 ms 1884 KiB
random_06.txt AC 1 ms 1944 KiB