結果
| 問題 | No.5 数字のブロック |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-03-21 16:46:47 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 164 bytes |
| コンパイル時間 | 449 ms |
| コンパイル使用メモリ | 82,304 KB |
| 実行使用メモリ | 60,160 KB |
| 最終ジャッジ日時 | 2024-12-23 02:58:58 |
| 合計ジャッジ時間 | 3,113 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 34 |
ソースコード
l = int(input())
n = int(input())
w = sorted(list(map(int,input().split())))
cnt = len(w)
print(w,cnt)
while w and w[0] <= l:
l -= w.pop(0)
print(cnt - len(w))