結果
| 問題 |
No.2863 Base 10 Subsets 1
|
| コンテスト | |
| ユーザー |
Sashy1
|
| 提出日時 | 2024-09-04 04:35:27 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 313 bytes |
| コンパイル時間 | 193 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-09-04 04:35:29 |
| 合計ジャッジ時間 | 1,408 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 8 WA * 6 |
ソースコード
from itertools import combinations, chain
a , b = input().split()
k_l = ["0",]
for i in a:
k_l.append(i)
z = list(chain.from_iterable(combinations(k_l, r) for r in range(1, len(k_l)+1)))
# print(z)
ans = []
for j in z:
ans.append(int("".join(j)))
if int(b) in ans:
print("Yes")
else:
print("No")
Sashy1