第42347题 单选题
小杨需要把若干箱货物按原有顺序分配到 days 天中,每天运输连续的若干箱,求可以完成任务的最小载重量。函数 check(cap) 判断载重量为 cap 时,是否可以在规定天数运完全部货物。横线处应填写( )
l = maxWeight
r = totalWeight

while l < r:
    mid = l + (r - l) // 2
    if check(mid):
        _______________
    else:
        _______________
print(l)
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
知识点:
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析