結果
| 問題 | No.24 数当てゲーム |
| コンテスト | |
| ユーザー |
kyuna
|
| 提出日時 | 2018-10-30 23:59:43 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 322 bytes |
| 記録 | |
| コンパイル時間 | 217 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-11-19 10:59:40 |
| 合計ジャッジ時間 | 1,091 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 10 |
ソースコード
from functools import reduce
yes = []
no = []
for _ in range(int(input())):
*x, r = input().split()
x = set(x)
if r == 'YES':
yes.append(x)
else:
no.append(x)
if yes:
ans = reduce(lambda x, y: x & y, yes)
else:
ans = {str(i) for i in range(10)}
for s in no:
ans -= s
print(ans)
kyuna