提出 #44879014


ソースコード 拡げる

use proconio::{input, marker::Usize1};

fn main() {
    input! {
        n: usize,
        k: usize,
    };
    let mut snuke = vec![false; n];
    for _ in 0..k {
        input! {
            d: usize,
            a: [Usize1; d],
        };
        for a_i in a {
            snuke[a_i] = true;
        }
    }
    let ans = snuke.into_iter().filter(|b| !b).count();
    println!("{}", ans);
}

提出情報

提出日時
問題 B - Trick or Treat
ユーザ bouzuya
言語 Rust (1.42.0)
得点 200
コード長 395 Byte
結果 AC
実行時間 8 ms
メモリ 2096 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 200 / 200
結果
AC × 2
AC × 15
セット名 テストケース
Sample 00-Sample-00, 00-Sample-01
All 00-Sample-00, 00-Sample-01, 01-Handmade-00, 01-Handmade-01, 01-Handmade-02, 02-SmallRandom-00, 02-SmallRandom-01, 02-SmallRandom-02, 02-SmallRandom-03, 02-SmallRandom-04, 03-LargeRandom-00, 03-LargeRandom-01, 03-LargeRandom-02, 03-LargeRandom-03, 03-LargeRandom-04
ケース名 結果 実行時間 メモリ
00-Sample-00 AC 8 ms 2056 KiB
00-Sample-01 AC 1 ms 2092 KiB
01-Handmade-00 AC 2 ms 2084 KiB
01-Handmade-01 AC 2 ms 2024 KiB
01-Handmade-02 AC 1 ms 1984 KiB
02-SmallRandom-00 AC 1 ms 2084 KiB
02-SmallRandom-01 AC 1 ms 2092 KiB
02-SmallRandom-02 AC 2 ms 2064 KiB
02-SmallRandom-03 AC 3 ms 2028 KiB
02-SmallRandom-04 AC 2 ms 1936 KiB
03-LargeRandom-00 AC 1 ms 1980 KiB
03-LargeRandom-01 AC 1 ms 2096 KiB
03-LargeRandom-02 AC 2 ms 1892 KiB
03-LargeRandom-03 AC 2 ms 2028 KiB
03-LargeRandom-04 AC 1 ms 1948 KiB