
尺取法
coldfresh
那我们开始吧
展开
-
Subsequence POJ - 3061 (二分法和尺取法两种做法)
A sequence of N positive integers (10 < N < 100 000), each of them less than or equal 10000, and a positive integer S (S < 100 000 000) are given. Write a program to find the minimal length of the subs原创 2017-04-23 14:43:19 · 456 阅读 · 0 评论 -
Jessica's Reading Problem POJ - 3320 (尺取法)
Jessica’s a very lovely girl wooed by lots of boys. Recently she has a problem. The final exam is coming, yet she has spent little time on it. If she wants to pass it, she has to master all ideas inclu原创 2017-04-23 16:20:49 · 516 阅读 · 0 评论 -
小小粉丝度度熊 HDU - 6119(尺取法)
度度熊喜欢着喵哈哈村的大明星——星星小姐。 为什么度度熊会喜欢星星小姐呢? 首先星星小姐笑起来非常动人,其次星星小姐唱歌也非常好听。 但这都不是最重要的,最重要的是,星星小姐拍的一手好代码! 于是度度熊关注了星星小姐的贴吧。 一开始度度熊决定每天都在星星小姐的贴吧里面签到。 但是度度熊是一个非常健忘的孩子,总有那么几天,度度熊忘记签到,于是就断掉了他的连续签到。 不过度度熊并不是非常悲伤,因为他有m原创 2017-08-14 11:59:03 · 410 阅读 · 0 评论