結果
| 問題 | No.1463 Hungry Kanten |
| コンテスト | |
| ユーザー |
yuusanlondon
|
| 提出日時 | 2021-04-02 21:41:58 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 207 ms / 2,000 ms |
| + 669µs | |
| コード長 | 238 bytes |
| 記録 | |
| コンパイル時間 | 80 ms |
| コンパイル使用メモリ | 64,776 KB |
| 実行使用メモリ | 94,300 KB |
| 最終ジャッジ日時 | 2026-10-15 12:07:57 |
| 合計ジャッジ時間 | 3,822 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 25 |
ソースコード
n,k=map(int,input().split())
a=list(map(int,input().split()))
p=set()
for i in range(1<<n):
q=[]
l=1
for j in range(n):
if i&(1<<j):
q.append(a[j])
l*=a[j]
if len(q)>=k:
p.add(sum(q))
p.add(l)
print(len(p))
yuusanlondon