結果
| 問題 |
No.5 数字のブロック
|
| ユーザー |
|
| 提出日時 | 2019-01-13 20:03:15 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 408 bytes |
| コンパイル時間 | 90 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-12-26 04:16:21 |
| 合計ジャッジ時間 | 2,055 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 34 |
ソースコード
# No.5 数字のブロック
math_list = input('Block size')
math_list = math_list.split()
math_range = math_list.pop(0)
math_range = int(math_range)
length = math_list.pop(0)
total = 0
box = 0
while math_range > total:
min_math = min(math_list)
total = total + int(min_math)
math_list.remove(min_math)
if math_range < total:
continue
box = box + 1
print(total)
print(box)