Submission #39410719


Source Code Expand

n, q = [int(i) for i in input().split()]
ls = [0] * n
for _ in range(q):
    c, x = [int(i) for i in input().split()]
    x -= 1
    if c == 1:
        ls[x] += 1
    elif c == 2:
        ls[x] += 2
    else:
        print('Yes' if ls[x] >= 2 else 'No')

Submission Info

Submission Time
Task B - Yellow and Red Card
User shinever
Language PyPy3 (7.3.0)
Score 200
Code Size 263 Byte
Status AC
Exec Time 73 ms
Memory 62532 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 1
AC × 17
Set Name Test Cases
Sample 00_sample_00.txt
All 00_sample_00.txt, 01_corner_00.txt, 02_random_00.txt, 02_random_01.txt, 02_random_02.txt, 02_random_03.txt, 02_random_04.txt, 02_random_05.txt, 02_random_06.txt, 02_random_07.txt, 02_random_08.txt, 02_random_09.txt, 03_n_min_00.txt, 03_n_min_01.txt, 03_n_min_02.txt, 04_no_exit_00.txt, 04_no_exit_01.txt
Case Name Status Exec Time Memory
00_sample_00.txt AC 73 ms 61784 KiB
01_corner_00.txt AC 51 ms 61784 KiB
02_random_00.txt AC 50 ms 62360 KiB
02_random_01.txt AC 51 ms 62360 KiB
02_random_02.txt AC 50 ms 62512 KiB
02_random_03.txt AC 50 ms 61816 KiB
02_random_04.txt AC 48 ms 61804 KiB
02_random_05.txt AC 54 ms 62152 KiB
02_random_06.txt AC 50 ms 62188 KiB
02_random_07.txt AC 48 ms 61756 KiB
02_random_08.txt AC 50 ms 61772 KiB
02_random_09.txt AC 53 ms 61780 KiB
03_n_min_00.txt AC 54 ms 62444 KiB
03_n_min_01.txt AC 47 ms 61680 KiB
03_n_min_02.txt AC 49 ms 62408 KiB
04_no_exit_00.txt AC 49 ms 62532 KiB
04_no_exit_01.txt AC 51 ms 61712 KiB