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