結果
問題 |
No.5 数字のブロック
|
ユーザー |
|
提出日時 | 2020-03-21 16:47:26 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 47 ms / 5,000 ms |
コード長 | 151 bytes |
コンパイル時間 | 337 ms |
コンパイル使用メモリ | 82,432 KB |
実行使用メモリ | 59,904 KB |
最終ジャッジ日時 | 2024-12-23 03:00:59 |
合計ジャッジ時間 | 3,277 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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))