結果
| 問題 | No.1463 Hungry Kanten |
| コンテスト | |
| ユーザー |
H20
|
| 提出日時 | 2021-04-02 21:42:25 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 269 ms / 2,000 ms |
| + 109µs | |
| コード長 | 335 bytes |
| 記録 | |
| コンパイル時間 | 96 ms |
| コンパイル使用メモリ | 64,600 KB |
| 実行使用メモリ | 124,860 KB |
| 最終ジャッジ日時 | 2026-10-15 12:08:16 |
| 合計ジャッジ時間 | 3,894 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 25 |
ソースコード
import itertools
def mul(L):
ret = 1
for l in L:
ret*=l
return ret
N,K = map(int,input().split())
A = list(map(int,input().split()))
pattern = []
for i in range(K,N+1):
for l in list(itertools.combinations(A, i)):
pattern.append(sum(l))
pattern.append(mul(l))
print(len(list(set(pattern))))
H20