Python 实现【快递运输】

360影视 国产动漫 2025-03-26 00:15 3

摘要:def max_packages(weights, capacity):sorted_weights = sorted(weights)total_weight = 0count = 0for weight in sorted_weights:if total

def max_packages(weights, capacity):sorted_weights = sorted(weights)total_weight = 0count = 0for weight in sorted_weights:if total_weight + weight

来源:贝耀教育

相关推荐