結果
問題 | No.2370 He ate many cakes |
ユーザー |
![]() |
提出日時 | 2023-07-04 00:11:46 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 235 ms / 2,000 ms |
コード長 | 138 bytes |
コンパイル時間 | 177 ms |
コンパイル使用メモリ | 82,832 KB |
実行使用メモリ | 239,640 KB |
最終ジャッジ日時 | 2024-07-17 21:47:10 |
合計ジャッジ時間 | 2,550 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 16 |
ソースコード
n,k=map(int,input().split()) a=list(map(int,input().split())) tmp=[0] for i in a: tmp=sorted(tmp+[j-i for j in tmp])[:k] print(-tmp[-1])