Submission #7522373


Source Code Expand

Copy
#!/usr/bin/env python3


def main():
    n, k, q = (int(z) for z in input().split())
    scores = [k - q for _ in range(n)]
    for _ in range(q):
        a = int(input()) - 1
        scores[a] += 1
    ress = ["Yes" if score > 0 else "No" for score in scores]
    print(*ress, sep="\n")


if __name__ == "__main__":
    main()

Submission Info

Submission Time
Task C - Attack Survival
User hamukichi
Language Python (3.4.3)
Score 300
Code Size 343 Byte
Status AC
Exec Time 234 ms
Memory 10196 KB

Judge Result

Set Name Sample Subtask1
Score / Max Score 0 / 0 300 / 300
Status
AC × 3
AC × 26
Set Name Test Cases
Sample sample_01.txt, sample_02.txt, sample_03.txt
Subtask1 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 AC 17 ms 2940 KB
sample_02.txt AC 17 ms 3060 KB
sample_03.txt AC 17 ms 2940 KB
sub1_01.txt AC 234 ms 10084 KB
sub1_02.txt AC 130 ms 10084 KB
sub1_03.txt AC 218 ms 10196 KB
sub1_04.txt AC 137 ms 10192 KB
sub1_05.txt AC 65 ms 10180 KB
sub1_06.txt AC 201 ms 10192 KB
sub1_07.txt AC 200 ms 10196 KB
sub1_08.txt AC 102 ms 10184 KB
sub1_09.txt AC 193 ms 10180 KB
sub1_10.txt AC 171 ms 10188 KB
sub1_11.txt AC 215 ms 10188 KB
sub1_12.txt AC 234 ms 10168 KB
sub1_13.txt AC 60 ms 10184 KB
sub1_14.txt AC 132 ms 6924 KB
sub1_15.txt AC 224 ms 10196 KB
sub1_16.txt AC 232 ms 10184 KB
sub1_17.txt AC 193 ms 4212 KB
sub1_18.txt AC 77 ms 10196 KB
sub1_19.txt AC 189 ms 3836 KB
sub1_20.txt AC 77 ms 10188 KB
sub1_21.txt AC 191 ms 4212 KB
sub1_22.txt AC 172 ms 10060 KB
sub1_23.txt AC 19 ms 3188 KB