双指针
文章平均质量分 84
snowy_smile
终于在ICPC World Final里拿到了气球!
再努力一点吧,坚持下去吧,梦想是会实现的! 人生会有低谷,但我更相信,未来也会有更多梦想能够实现~
展开
-
【Codeforces Round 333 (Div 2)B】【贪心 多指针】Approximating a Constant Range 给定数组 相邻元素波动为1 求差值不超1的最长序连续子序列
B. Approximating a Constant Rangetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputWhen Xellos was doing a pra原创 2015-11-25 19:13:38 · 1464 阅读 · 2 评论 -
【杭电2015年12月校赛C】【双指针 or 二分 语文题】The collector’s puzzle 每个物品装在最适合的箱子中
The collector’s puzzleTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1034 Accepted Submission(s): 233Problem DescriptionThere is原创 2015-12-28 13:24:48 · 643 阅读 · 0 评论 -
【Codeforces Round 345 (Div 1) B】【暴力 双指针】Image Preview 看照片、阅读、移动、反转最多看照片数
Beautiful Paintingstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere are n pictures delivered for the n原创 2016-03-08 19:05:23 · 621 阅读 · 0 评论 -
【ZOJ3940 The 13th Zhejiang Provincial Collegiate Programming ContestE】【脑洞 STL-MAP 复杂度分析 区间运算思想 双指针】M
Modulo QueryTime Limit: 2 Seconds Memory Limit: 65536 KB One day, Peter came across a function which looks like:F(1, X) = X mod A1.F(i, X) = F(i - 1, X) mod Ai, 2 ≤ i ≤ N.Where原创 2016-04-26 18:45:13 · 1184 阅读 · 2 评论 -
【Codeforces Round 354 (Div 2)C】【前缀和二分or双指针】Vasya and String ab序列最多改变k位置的最长同字符子串长度
C. Vasya and Stringtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputHigh school student Vasya got a string o原创 2016-05-27 13:21:29 · 955 阅读 · 0 评论 -
【Codeforces Round 364 (Div 2)C】【前缀和 双指针】They Are Everywhere 含有所有字符的最短区间长度
C. They Are Everywheretime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputSergei B., the young coach of Pokemo原创 2016-07-25 10:10:18 · 965 阅读 · 0 评论 -
【HDU5806 BestCoder Round 86C】【双指针】多少个区间内第k大数不小于m
NanoApe Loves Sequence Ⅱ Accepts: 374 Submissions: 946 Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 262144/131072 K (Java/Others)问题描述退役狗 NanoApe 滚回去学文化课啦!在数学课上,N原创 2016-08-07 09:05:10 · 527 阅读 · 0 评论 -
【HDU5808 BestCoder Round 86E】【时间排序 树状数组计数 bitsetDP 或分治】Price List Strike Back 距离范围、区间范围商店购物 使得价值和恰为m
Price List Strike Back Accepts: 2 Submissions: 51 Time Limit: 6000/3000 MS (Java/Others) Memory Limit: 262144/131072 K (Java/Others)问题描述在Byteland一共有nn家商店,编号依次为11到nn。每家商店只会原创 2016-08-07 11:42:08 · 1524 阅读 · 3 评论