摘要: 题目链接:https://www.51nod.com/onlineJudge/questionCode.html#!problemId=1241 题意:中文题诶~ 思路:通过观察我们不难发现就是找连续上升子序列,答案就是n-最长连续上升子序列长度; 注意:我们要找的是3, 4, 5, 6这样的连续上 阅读全文
posted @ 2017-01-24 18:30 geloutingyu 阅读(286) 评论(0) 推荐(0) 编辑
摘要: 题目链接:https://www.51nod.com/onlineJudge/questionCode.html#!problemId=1103 题意:中文题诶~ 思路:抽屉原理 对于两个数a, b, 若a=b(modx),那么(a-b)%x=0; 所以求满足题意的数列,我们可以在连续子序列里面找到 阅读全文
posted @ 2017-01-24 13:01 geloutingyu 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 题目链接:https://www.51nod.com/onlineJudge/questionCode.html#!problemId=1102 题意:中文题诶~ 思路:单调栈/预处理 (这篇博客就不细写了啦,只给出代码和转过来的两篇不错的题解,好困了~) 单调栈:http://blog.csdn. 阅读全文
posted @ 2017-01-24 00:26 geloutingyu 阅读(210) 评论(0) 推荐(0) 编辑