pat甲级贪心
月下独喝
这个作者很懒,什么都没留下…
展开
-
pat甲级1067 Sort with Swap(0, i)(贪心)
1067 Sort with Swap(0, i) (25 分) Given any permutation of the numbers {0, 1, 2,..., N−1}, it is easy to sort them in increasing order. But what if Swap(0, *) is the ONLY operation that is allowed to ...原创 2019-07-08 23:45:53 · 131 阅读 · 0 评论 -
1070 Mooncake(贪心算法(求最高单价))
1070 Mooncake (25 分) Mooncake is a Chinese bakery product traditionally eaten during the Mid-Autumn Festival. Many types of fillings and crusts can be found in traditional mooncakes according to the ...原创 2019-07-07 10:50:03 · 198 阅读 · 0 评论