結果

問題 No.24 数当てゲーム
ユーザー ohanaohana
提出日時 2023-09-26 17:41:42
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 84 ms / 5,000 ms
コード長 203 bytes
コンパイル時間 446 ms
コンパイル使用メモリ 87,116 KB
実行使用メモリ 71,572 KB
最終ジャッジ日時 2023-09-26 17:41:44
合計ジャッジ時間 1,984 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,276 KB
testcase_01 AC 84 ms
71,416 KB
testcase_02 AC 74 ms
71,572 KB
testcase_03 AC 75 ms
71,340 KB
testcase_04 AC 75 ms
70,988 KB
testcase_05 AC 74 ms
71,228 KB
testcase_06 AC 77 ms
71,296 KB
testcase_07 AC 74 ms
71,292 KB
testcase_08 AC 75 ms
71,216 KB
testcase_09 AC 75 ms
71,048 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
S = set(range(10))

for i in range(n):
    a, b, c, d, s = input().split()
    T = set(map(int, [a, b, c, d]))
    if s == "NO":
        S = S - T
    else:
        S = S & T

print(*S)
0