結果
| 問題 |
No.5 数字のブロック
|
| ユーザー |
|
| 提出日時 | 2021-02-22 18:55:23 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 135 bytes |
| コンパイル時間 | 735 ms |
| コンパイル使用メモリ | 81,952 KB |
| 実行使用メモリ | 66,184 KB |
| 最終ジャッジ日時 | 2024-09-21 14:56:54 |
| 合計ジャッジ時間 | 2,701 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 24 RE * 10 |
ソースコード
L = int(input())
N = int(input())
W = list(map(int, input().split()))
W.sort()
i = 0
while W[i] <= L:
L -= W[i]
i += 1
print(i)