
贪心
逃课去学习:)
读万卷书,行万里路。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
PAT(贪心)——1045. Favorite Color Stripe (30)
Eva is trying to make her own color stripe out of a given one. She would like to keep only her favorite colors in her favorite order by cutting off those unwanted pieces and sewing the remaining parts...原创 2019-01-31 17:36:07 · 123 阅读 · 0 评论 -
PAT(贪心)——1033. To Fill or Not to Fill (25)
With highways available, driving a car from Hangzhou to any other city is easy. But since the tank capacity of a car is limited, we have to find gas stations on the way from time to time. Different ga...原创 2019-02-04 15:58:58 · 139 阅读 · 0 评论 -
PAT(贪心)——1037. Magic Coupon (25)
The magic shop in Mars is offering some magic coupons. Each coupon has an integer N printed on it, meaning that when you use this coupon with a product, you may get N times the value of that product b...原创 2019-02-06 21:41:52 · 195 阅读 · 0 评论 -
PAT(贪心)——1038. Recover the Smallest Number (30)
Given a collection of number segments, you are supposed to recover the smallest number from them. For example, given {32, 321, 3214, 0229, 87}, we can recover many numbers such like 32-321-3214-0229-8...原创 2019-02-07 17:08:10 · 183 阅读 · 0 评论 -
PAT(贪心)——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 regions culture. Now g...原创 2019-02-07 20:08:31 · 150 阅读 · 0 评论