摘要:
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 阅读全文
摘要:
PAT_A 1033 To Fill or Not to Fill 分析 是一道很像动态规划的贪心问题,通过计算每一段路程的最小花费的到结果,需要判断出发点没有加油站的情况 PAT_A 1033 To Fill or Not to Fill 题目的描述 With highways available 阅读全文
摘要:
PAT_A 1048 Find Coins 分析 本题可以看作双指针的简单应用 PAT_A 1048 Find Coins 题目的描述 Eva loves to collect coins from all over the universe, including some other planet 阅读全文