結果
| 問題 | No.1463 Hungry Kanten |
| コンテスト | |
| ユーザー |
wolgnik
|
| 提出日時 | 2021-04-02 21:25:50 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 180 ms / 2,000 ms |
| + 748µs | |
| コード長 | 324 bytes |
| 記録 | |
| コンパイル時間 | 87 ms |
| コンパイル使用メモリ | 64,832 KB |
| 実行使用メモリ | 93,716 KB |
| 最終ジャッジ日時 | 2026-10-15 12:04:40 |
| 合計ジャッジ時間 | 3,347 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 25 |
ソースコード
import sys
from itertools import combinations as combi
input = sys.stdin.readline
N, K = map(int, input().split())
a = list(map(int, input().split()))
res = set()
for t in range(K, N + 1):
for c in combi([x for x in a], t):
sm = sum(c)
pr = 1
for x in c: pr *= x
res.add(sm)
res.add(pr)
print(len(res))
wolgnik