結果

問題 No.24 数当てゲーム
ユーザー JunOnumaJunOnuma
提出日時 2017-06-14 13:22:38
言語 Python2
(2.7.18)
結果
AC  
実行時間 13 ms / 5,000 ms
コード長 374 bytes
コンパイル時間 71 ms
コンパイル使用メモリ 7,088 KB
実行使用メモリ 6,404 KB
最終ジャッジ日時 2023-10-25 01:16:13
合計ジャッジ時間 1,098 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
6,404 KB
testcase_01 AC 12 ms
6,404 KB
testcase_02 AC 13 ms
6,404 KB
testcase_03 AC 12 ms
6,404 KB
testcase_04 AC 12 ms
6,404 KB
testcase_05 AC 11 ms
6,404 KB
testcase_06 AC 11 ms
6,404 KB
testcase_07 AC 11 ms
6,404 KB
testcase_08 AC 11 ms
6,404 KB
testcase_09 AC 11 ms
6,404 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

d = {}
l = []
for i in range(10):
    d[chr(ord('0')+i)] = True
    l.append(chr(ord('0')+i))
n = int(raw_input())
for _ in range(n):
    m = raw_input().split()
    if m[-1] == 'YES':
        for c in l:
            if not c in m:
                d[c] = False
    else:
        for i in range(4):
            d[m[i]] = False
for n,b in d.items():
    if b:
        print n
0