結果
問題 |
No.617 Nafmo、買い出しに行く
|
ユーザー |
|
提出日時 | 2017-12-23 04:42:56 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 142 bytes |
コンパイル時間 | 150 ms |
コンパイル使用メモリ | 82,092 KB |
実行使用メモリ | 54,376 KB |
最終ジャッジ日時 | 2024-12-17 15:03:25 |
合計ジャッジ時間 | 1,764 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 2 |
other | AC * 4 WA * 16 |
ソースコード
n, k = map(int, input().split()) al = sorted([int(i) for i in range(n)]) while al: if sum(al) <= k: break al = al[:-1] print(sum(al))