結果
| 問題 | No.5 数字のブロック |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-02-22 18:55:23 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 135 bytes |
| 記録 | |
| コンパイル時間 | 119 ms |
| コンパイル使用メモリ | 85,120 KB |
| 実行使用メモリ | 65,024 KB |
| 最終ジャッジ日時 | 2026-04-09 20:10:04 |
| 合計ジャッジ時間 | 2,793 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)