結果
| 問題 | No.24 数当てゲーム |
| コンテスト | |
| ユーザー |
kyuna
|
| 提出日時 | 2018-10-30 23:59:43 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 322 bytes |
| 記録 | |
| コンパイル時間 | 61 ms |
| コンパイル使用メモリ | 14,976 KB |
| 実行使用メモリ | 11,008 KB |
| 最終ジャッジ日時 | 2026-09-26 15:28:04 |
| 合計ジャッジ時間 | 1,526 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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