結果
| 問題 | No.24 数当てゲーム | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2023-08-11 10:59:37 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 31 ms / 5,000 ms | 
| コード長 | 395 bytes | 
| コンパイル時間 | 203 ms | 
| コンパイル使用メモリ | 82,428 KB | 
| 実行使用メモリ | 53,288 KB | 
| 最終ジャッジ日時 | 2024-11-18 03:02:28 | 
| 合計ジャッジ時間 | 1,208 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 10 | 
ソースコード
N = int(input())
ans = set(i for i in range(10))
a, b, c, d, x = list(input().split())
a, b, c, d = map(int, [a, b, c, d])
if x == "YES":
    ans = {a, b, c, d}
else:
    ans -= {a, b, c, d}
for _ in range(N - 1):
    a, b, c, d, x = list(input().split())
    a, b, c, d = map(int, [a, b, c, d])
    if x == "YES":
        ans &= {a, b, c, d}
    else:
        ans -= {a, b, c, d}
print(*ans)
            
            
            
        