尺取
Lesroad
这个作者很懒,什么都没留下…
展开
-
【poj3061】Subsequence
【题目大意】 给定长度微n的数列整数及整数s。求出总和不小于s的连续子序列的长度的最小值。如果节不存在,则输出0。 思路:sums,l右移 #include #include #include #include using namespace std; const int MAXN=100000+50; int num[MAXN],n,s; void solve() { scan原创 2017-08-29 16:11:19 · 226 阅读 · 0 评论 -
【poj3320】Jessica's Reading Problem(尺取)
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 incl原创 2017-08-30 15:43:42 · 210 阅读 · 0 评论