結果
| 問題 | No.24 数当てゲーム |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-01-03 00:28:39 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 33 ms / 5,000 ms |
| コード長 | 305 bytes |
| コンパイル時間 | 93 ms |
| コンパイル使用メモリ | 12,288 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-12-23 01:14:52 |
| 合計ジャッジ時間 | 968 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 |
ソースコード
n = int(input())
ans = set(range(10))
num_ok = set(range(10))
num_ng = set()
for _ in range(n):
num = input().split()
if num.pop() == 'YES':
num_ok = num_ok & set([int(x) for x in num])
else:
num_ng = num_ng | set([int(x) for x in num])
print(((ans - num_ng) & num_ok).pop())