結果
| 問題 |
No.156 キャンディー・ボックス
|
| コンテスト | |
| ユーザー |
310icecrystal
|
| 提出日時 | 2023-06-23 07:41:41 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 137 bytes |
| コンパイル時間 | 319 ms |
| コンパイル使用メモリ | 82,108 KB |
| 実行使用メモリ | 67,092 KB |
| 最終ジャッジ日時 | 2024-06-30 13:03:51 |
| 合計ジャッジ時間 | 2,979 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 M-C[now]>= 0: M -= C[now] now += 1 print(now)
310icecrystal