結果

問題 No.24 数当てゲーム
ユーザー yomo3yomo3
提出日時 2020-01-22 15:05:50
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 27 ms / 5,000 ms
コード長 190 bytes
コンパイル時間 78 ms
コンパイル使用メモリ 10,648 KB
実行使用メモリ 9,196 KB
最終ジャッジ日時 2023-09-22 10:32:07
合計ジャッジ時間 923 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
9,164 KB
testcase_01 AC 26 ms
9,088 KB
testcase_02 AC 25 ms
9,196 KB
testcase_03 AC 24 ms
9,088 KB
testcase_04 AC 25 ms
9,120 KB
testcase_05 AC 24 ms
9,108 KB
testcase_06 AC 26 ms
9,092 KB
testcase_07 AC 25 ms
9,112 KB
testcase_08 AC 24 ms
9,184 KB
testcase_09 AC 24 ms
9,164 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import string
s = set(string.digits)
for _ in range(int(input())):
    *abcd, r = input().split()
    t = set(abcd)
    if r == "YES":
        s &= t
    else:
        s -= t
print(s.pop())
0