結果
問題 |
No.2329 Nafmo、イカサマをする
|
ユーザー |
👑 ![]() |
提出日時 | 2023-05-28 17:39:45 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 220 bytes |
コンパイル時間 | 459 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 52,480 KB |
最終ジャッジ日時 | 2024-12-27 13:06:39 |
合計ジャッジ時間 | 3,661 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 4 WA * 36 |
ソースコード
n,m,k=map(int,input().split()) a=list(map(int,input().split())) def f(v,c,i): if m<v: return 0 if i==n or c==k: return v res=v for j in range(k-c+1): res=max(res,f(v+j*a[i],c+i,i+1)) return res print(f(0,0,0))