結果
| 問題 |
No.1463 Hungry Kanten
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-04-02 21:56:08 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 297 bytes |
| コンパイル時間 | 318 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 75,748 KB |
| 最終ジャッジ日時 | 2024-12-23 23:33:40 |
| 合計ジャッジ時間 | 23,948 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 15 WA * 2 TLE * 3 |
ソースコード
import itertools
import numpy as np
n, k = map(int, input().split())
a = list(map(int, input().split()))
l = list()
for i in range(k, n+1):
for j in itertools.combinations(a, i):
x = sum(j)
y = np.prod(list(j))
l.append(x)
l.append(y)
l = set(l)
print(len(l))