結果
| 問題 |
No.156 キャンディー・ボックス
|
| コンテスト | |
| ユーザー |
matsu7874
|
| 提出日時 | 2015-03-20 06:47:41 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 185 bytes |
| コンパイル時間 | 68 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-06-28 23:41:07 |
| 合計ジャッジ時間 | 1,804 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 3 |
| other | AC * 16 WA * 14 |
ソースコード
N,M = [int(x) for x in input().split()]
C = [int(x) for x in input().split()]
C.sort()
for i in range(N):
M -= C[i]
if M<0:
print(i-1)
exit()
else:
print(N)
matsu7874