結果

問題 No.24 数当てゲーム
ユーザー yumenomatayumeyumenomatayume
提出日時 2020-04-04 09:57:55
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 73 ms / 5,000 ms
コード長 271 bytes
コンパイル時間 277 ms
コンパイル使用メモリ 86,916 KB
実行使用メモリ 71,580 KB
最終ジャッジ日時 2023-09-16 05:28:14
合計ジャッジ時間 1,815 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,580 KB
testcase_01 AC 67 ms
71,464 KB
testcase_02 AC 69 ms
71,544 KB
testcase_03 AC 73 ms
71,332 KB
testcase_04 AC 69 ms
71,404 KB
testcase_05 AC 67 ms
71,228 KB
testcase_06 AC 67 ms
71,284 KB
testcase_07 AC 69 ms
71,576 KB
testcase_08 AC 68 ms
71,468 KB
testcase_09 AC 69 ms
71,264 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
digit_set = {0,1,2,3,4,5,6,7,8,9}

for i in range(n):
    a,b,c,d,r = map(str,input().split())
    if r == 'YES':
        digit_set &= set(list(map(int,[a,b,c,d])))
    else:
        digit_set -= set(list(map(int,[a,b,c,d])))

print(list(digit_set)[0])

0