結果
| 問題 | No.5 数字のブロック |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-03-21 16:47:26 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 28 ms / 5,000 ms |
| + 88µs | |
| コード長 | 151 bytes |
| 記録 | |
| コンパイル時間 | 62 ms |
| コンパイル使用メモリ | 81,680 KB |
| 実行使用メモリ | 63,212 KB |
| 最終ジャッジ日時 | 2026-10-06 07:55:39 |
| 合計ジャッジ時間 | 2,771 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 34 |
ソースコード
l = int(input())
n = int(input())
w = sorted(list(map(int,input().split())))
cnt = len(w)
while w and w[0] <= l:
l -= w.pop(0)
print(cnt - len(w))