摘要: PAT_A 1037 Magic Coupon 分析 尽量增大总回报值即可得到结果。 PAT_A 1037 Magic Coupon 题目的描述 The magic shop in Mars is offering some magic coupons. Each coupon has an int 阅读全文
posted @ 2022-09-04 23:22 ghosteq 阅读(18) 评论(0) 推荐(0) 编辑
摘要: PAT_A 1033 To Fill or Not to Fill 分析 是一道很像动态规划的贪心问题,通过计算每一段路程的最小花费的到结果,需要判断出发点没有加油站的情况 PAT_A 1033 To Fill or Not to Fill 题目的描述 With highways available 阅读全文
posted @ 2022-09-04 17:33 ghosteq 阅读(19) 评论(0) 推荐(0) 编辑