Submission #44879014


Source Code Expand

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);
}

Submission Info

Submission Time
Task B - Trick or Treat
User bouzuya
Language Rust (1.42.0)
Score 200
Code Size 395 Byte
Status AC
Exec Time 8 ms
Memory 2096 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 2
AC × 15
Set Name Test Cases
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
Case Name Status Exec Time Memory
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