結果
| 問題 | No.24 数当てゲーム | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2024-10-19 12:44:22 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 30 ms / 5,000 ms | 
| コード長 | 777 bytes | 
| コンパイル時間 | 503 ms | 
| コンパイル使用メモリ | 12,800 KB | 
| 実行使用メモリ | 10,880 KB | 
| 最終ジャッジ日時 | 2024-10-19 12:44:24 | 
| 合計ジャッジ時間 | 1,823 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 10 | 
ソースコード
n = int(input())
input_lst = [ input().split(' ') for i in range(n) ]
answer_de = {
    0: True,
    1: True,
    2: True,
    3: True,
    4: True,
    5: True,
    6: True,
    7: True,
    8: True,
    9: True,
}
answer_in = {
    0: True,
    1: True,
    2: True,
    3: True,
    4: True,
    5: True,
    6: True,
    7: True,
    8: True,
    9: True,
}
for input in input_lst:
    if input[4] == 'NO':
        for num in input[:-1]:
            answer_de[int(num)] = False
    else:
        for key in answer_in.keys():
            if str(key) in input[:-1] and answer_in[key]:
                continue
            else:
                answer_in[key] = False
                
for i in range(10):
    if answer_de[i] and answer_in[i]:
        print(i)
        break
            
            
            
        