結果
| 問題 | No.24 数当てゲーム |
| コンテスト | |
| ユーザー |
kanoekakihito
|
| 提出日時 | 2018-09-22 14:06:00 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 28 ms / 5,000 ms |
| コード長 | 376 bytes |
| コンパイル時間 | 232 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-07-18 08:55:30 |
| 合計ジャッジ時間 | 949 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 |
ソースコード
n= int(input())
response = {input() for line in range(n)}
NO = {i for i in response if i[-2:] == "NO"}
y = tuple(map(lambda s: "".join([c for c in s if c.isdigit()]), response - NO))
if len(y) == 0:
YES = {}
else:
YES = set("".join(map(lambda i: i if all([(i in r) for r in y]) else "", y[0])))
print("".join((YES if len(YES) > 0 else set("0123456789")) - set("".join(NO))))
kanoekakihito