結果
| 問題 | No.5 数字のブロック |
| コンテスト | |
| ユーザー |
Fullmoon85072
|
| 提出日時 | 2020-08-01 20:46:27 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 30 ms / 5,000 ms |
| コード長 | 225 bytes |
| 記録 | |
| コンパイル時間 | 168 ms |
| コンパイル使用メモリ | 85,760 KB |
| 実行使用メモリ | 59,264 KB |
| 最終ジャッジ日時 | 2026-03-30 00:07:18 |
| 合計ジャッジ時間 | 2,128 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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