結果
| 問題 |
No.156 キャンディー・ボックス
|
| コンテスト | |
| ユーザー |
310icecrystal
|
| 提出日時 | 2023-06-23 07:40:09 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 130 bytes |
| コンパイル時間 | 301 ms |
| コンパイル使用メモリ | 82,344 KB |
| 実行使用メモリ | 53,936 KB |
| 最終ジャッジ日時 | 2024-06-30 13:02:14 |
| 合計ジャッジ時間 | 2,734 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 2 |
| other | AC * 18 WA * 12 |
ソースコード
N,M = map(int,input().split()) C = list(map(int,input().split())) C.sort() now = 0 while M>= 1: M -= C[now] now += 1 print(now)
310icecrystal