結果
| 問題 | No.156 キャンディー・ボックス |
| コンテスト | |
| ユーザー |
bellangeldindon
|
| 提出日時 | 2019-05-07 17:16:33 |
| 言語 | PyPy2 (7.3.20) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 171 bytes |
| 記録 | |
| コンパイル時間 | 57 ms |
| コンパイル使用メモリ | 80,980 KB |
| 実行使用メモリ | 81,524 KB |
| 最終ジャッジ日時 | 2026-07-18 19:10:55 |
| 合計ジャッジ時間 | 3,472 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 RE * 1 |
| other | AC * 14 RE * 16 |
ソースコード
N, M = map(int, raw_input().split()) candy = map(int, raw_input().split()) candy.sort() cnt = 0 while(True): if M < candy[0]: break M -= candy.pop(0) cnt += 1 print cnt
bellangeldindon