結果
| 問題 | No.5 数字のブロック |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-03-21 16:41:13 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 145 bytes |
| 記録 | |
| コンパイル時間 | 677 ms |
| コンパイル使用メモリ | 85,268 KB |
| 実行使用メモリ | 67,240 KB |
| 最終ジャッジ日時 | 2026-05-29 05:47:56 |
| 合計ジャッジ時間 | 3,468 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 24 RE * 10 |
ソースコード
l = int(input())
n = int(input())
w = sorted(list(map(int,input().split())))
cnt = len(w)
while w[0] <= l:
l -= w.pop(0)
print(cnt - len(w))