結果
| 問題 | No.24 数当てゲーム |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-08-11 10:59:37 |
| 言語 | PyPy3 (8.0.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 32 ms / 5,000 ms |
| + 920µs | |
| コード長 | 395 bytes |
| 記録 | |
| コンパイル時間 | 595 ms |
| コンパイル使用メモリ | 64,132 KB |
| 実行使用メモリ | 53,540 KB |
| 最終ジャッジ日時 | 2026-11-15 19:04:18 |
| 合計ジャッジ時間 | 2,020 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge5_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 13 |
ソースコード
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)