結果
| 問題 | No.156 キャンディー・ボックス |
| コンテスト | |
| ユーザー |
310icecrystal
|
| 提出日時 | 2023-06-23 07:41:08 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 137 bytes |
| 記録 | |
| コンパイル時間 | 372 ms |
| コンパイル使用メモリ | 85,760 KB |
| 実行使用メモリ | 52,224 KB |
| 最終ジャッジ日時 | 2026-03-20 12:56:40 |
| 合計ジャッジ時間 | 2,387 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 2 |
| other | AC * 12 WA * 18 |
ソースコード
N,M = map(int,input().split()) C = list(map(int,input().split())) C.sort() now = 0 while M-C[now]>= 1: M -= C[now] now += 1 print(now)
310icecrystal