Submission #7525858


Source Code Expand

Copy
<?php
fscanf(STDIN, '%d %d %d', $n, $k, $q);
$arr = array_fill(0, $n, 0);
for ($i  = 0; $i < $q; $i++) {
    fscanf(STDIN, '%d', $a);
    $arr[$a - 1]++;
}
for ($i = 0; $i < $n; $i++) {
    if ($k - $q + $arr[$i] > 0) echo 'Yes' . PHP_EOL;
    else echo 'No' . PHP_EOL;
}

Submission Info

Submission Time
Task C - Attack Survival
User hideyuk1
Language PHP7 (7.0.15)
Score 300
Code Size 281 Byte
Status
Exec Time 192 ms
Memory 9080 KB

Test Cases

Set Name Score / Max Score Test Cases
Sample 0 / 0 sample_01.txt, sample_02.txt, sample_03.txt
Subtask1 300 / 300 sample_01.txt, sample_02.txt, sample_03.txt, sub1_01.txt, sub1_02.txt, sub1_03.txt, sub1_04.txt, sub1_05.txt, sub1_06.txt, sub1_07.txt, sub1_08.txt, sub1_09.txt, sub1_10.txt, sub1_11.txt, sub1_12.txt, sub1_13.txt, sub1_14.txt, sub1_15.txt, sub1_16.txt, sub1_17.txt, sub1_18.txt, sub1_19.txt, sub1_20.txt, sub1_21.txt, sub1_22.txt, sub1_23.txt
Case Name Status Exec Time Memory
sample_01.txt 11 ms 4728 KB
sample_02.txt 9 ms 4604 KB
sample_03.txt 9 ms 4604 KB
sub1_01.txt 187 ms 9080 KB
sub1_02.txt 168 ms 9080 KB
sub1_03.txt 182 ms 8952 KB
sub1_04.txt 169 ms 8952 KB
sub1_05.txt 159 ms 8952 KB
sub1_06.txt 181 ms 8952 KB
sub1_07.txt 178 ms 8952 KB
sub1_08.txt 163 ms 8952 KB
sub1_09.txt 179 ms 8952 KB
sub1_10.txt 176 ms 8952 KB
sub1_11.txt 187 ms 8952 KB
sub1_12.txt 186 ms 8952 KB
sub1_13.txt 160 ms 8952 KB
sub1_14.txt 167 ms 9080 KB
sub1_15.txt 192 ms 8952 KB
sub1_16.txt 187 ms 8952 KB
sub1_17.txt 52 ms 4604 KB
sub1_18.txt 160 ms 8952 KB
sub1_19.txt 53 ms 4604 KB
sub1_20.txt 163 ms 8952 KB
sub1_21.txt 50 ms 4604 KB
sub1_22.txt 174 ms 9080 KB
sub1_23.txt 11 ms 4604 KB