提出 #39410010


ソースコード 拡げる

N, Q = map(int, input().split())

player = [0] * (N + 1)

for _ in range(Q):
  ev, x = map(int, input().split())
  if ev == 3:
    print("Yes" if player[x] > 1 else "No")
  else:
    player[x] += ev

提出情報

提出日時
問題 B - Yellow and Red Card
ユーザ arakaki_tokyo
言語 PyPy3 (7.3.0)
得点 200
コード長 207 Byte
結果 AC
実行時間 61 ms
メモリ 62312 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 200 / 200
結果
AC × 1
AC × 17
セット名 テストケース
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
ケース名 結果 実行時間 メモリ
00_sample_00.txt AC 61 ms 61488 KiB
01_corner_00.txt AC 49 ms 61396 KiB
02_random_00.txt AC 50 ms 62244 KiB
02_random_01.txt AC 50 ms 62272 KiB
02_random_02.txt AC 51 ms 62252 KiB
02_random_03.txt AC 47 ms 61488 KiB
02_random_04.txt AC 48 ms 61616 KiB
02_random_05.txt AC 50 ms 61896 KiB
02_random_06.txt AC 50 ms 61992 KiB
02_random_07.txt AC 50 ms 61488 KiB
02_random_08.txt AC 50 ms 61556 KiB
02_random_09.txt AC 47 ms 61596 KiB
03_n_min_00.txt AC 51 ms 62312 KiB
03_n_min_01.txt AC 46 ms 61400 KiB
03_n_min_02.txt AC 47 ms 62240 KiB
04_no_exit_00.txt AC 49 ms 62312 KiB
04_no_exit_01.txt AC 47 ms 61712 KiB