結果

問題 No.24 数当てゲーム
ユーザー brthyyjpbrthyyjp
提出日時 2021-08-12 17:48:33
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 35 ms / 5,000 ms
コード長 314 bytes
コンパイル時間 318 ms
コンパイル使用メモリ 82,488 KB
実行使用メモリ 53,624 KB
最終ジャッジ日時 2024-04-09 21:59:53
合計ジャッジ時間 1,226 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
53,624 KB
testcase_01 AC 34 ms
52,268 KB
testcase_02 AC 33 ms
52,252 KB
testcase_03 AC 34 ms
52,340 KB
testcase_04 AC 33 ms
52,036 KB
testcase_05 AC 34 ms
52,312 KB
testcase_06 AC 34 ms
52,732 KB
testcase_07 AC 33 ms
52,136 KB
testcase_08 AC 32 ms
52,148 KB
testcase_09 AC 34 ms
52,032 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
S = set(range(10))
for i in range(n):
    a, b, c, d, r = map(str, input().split())
    a, b, c, d = int(a), int(b), int(c), int(d)
    if r == 'NO':
        S.discard(a)
        S.discard(b)
        S.discard(c)
        S.discard(d)
    else:
        S = S & {a, b, c, d}
S = list(S)
print(S[0])
0