[贪心]1432独木舟
题目
思路
最重的和最小的配,大的带不动的单独一组
代码
最重的和最小的配,大的带不动的单独一组
这道题很简单,思路也很好想,因为一只船最多两个人坐,所以就看最重的人和最轻的人体重加一起是否超过载重,如果超过了,船就只
题干:n个人,已知每个人体重。独木舟承重固定,每
独木舟上的旅行
独木舟上的旅行时间限制:3000 ms | 内存限制:65535 KB难度:2描述进行一次独木舟的旅行活动,独木舟可以在港口量。根据给出的
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M