結果
| 問題 |
No.5 数字のブロック
|
| ユーザー |
Fullmoon85072
|
| 提出日時 | 2020-08-01 20:46:27 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 47 ms / 5,000 ms |
| コード長 | 225 bytes |
| コンパイル時間 | 249 ms |
| コンパイル使用メモリ | 82,304 KB |
| 実行使用メモリ | 59,008 KB |
| 最終ジャッジ日時 | 2024-07-08 07:09:06 |
| 合計ジャッジ時間 | 2,653 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 34 |
ソースコード
L = int(input())
N = int(input())
block_list = [int(x) for x in input().split(" ")]
block_list.sort()
count = 0
for length in block_list:
L -= length
if L >= 0:
count += 1
else:
break
print(count)
Fullmoon85072