結果

問題 No.24 数当てゲーム
ユーザー convexineqconvexineq
提出日時 2020-11-22 22:42:51
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 69 ms / 5,000 ms
コード長 341 bytes
コンパイル時間 287 ms
コンパイル使用メモリ 87,168 KB
実行使用メモリ 71,500 KB
最終ジャッジ日時 2023-09-30 23:05:46
合計ジャッジ時間 1,732 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 66 ms
71,024 KB
testcase_01 AC 68 ms
71,464 KB
testcase_02 AC 68 ms
71,024 KB
testcase_03 AC 69 ms
71,500 KB
testcase_04 AC 66 ms
71,328 KB
testcase_05 AC 67 ms
71,060 KB
testcase_06 AC 67 ms
71,240 KB
testcase_07 AC 68 ms
71,360 KB
testcase_08 AC 68 ms
71,232 KB
testcase_09 AC 67 ms
71,228 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# coding: utf-8
# Your code here!
import sys
readline = sys.stdin.readline
read = sys.stdin.read

n = int(readline())
nset = set()
yset = set(range(10))
for _ in range(n):
    *r, = readline().split()
    s = set(map(int,r[:4]))
    if r[-1]=="NO":
        nset |= s
    else:
        yset &= s

for i in yset:
    if i not in nset: print(i)
0