結果
| 問題 | No.24 数当てゲーム | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2022-02-17 18:21:09 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                RE
                                 
                             | 
| 実行時間 | - | 
| コード長 | 276 bytes | 
| コンパイル時間 | 350 ms | 
| コンパイル使用メモリ | 82,216 KB | 
| 実行使用メモリ | 65,552 KB | 
| 最終ジャッジ日時 | 2024-06-29 07:45:07 | 
| 合計ジャッジ時間 | 1,409 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 8 RE * 2 | 
ソースコード
n = int(input())
cand = list(range(1,10))
for i in range(n):
    a,b,c,d,r = input().split()
    a=int(a);b=int(b);c=int(c);d=int(d)
    if r=="YES":
        cand = list(set(cand) & set([a,b,c,d]))
    else:
        cand = list(set(cand)-set([a,b,c,d]))
print(cand[0])        
            
            
            
        