摘要: 题目链接 http://acm.csu.edu.cn:20080/csuoj/problemset/problem?pid=2110 题目 Description Kevin has just gotten back to his car after a morning at the beach a 阅读全文
posted @ 2019-02-13 23:27 Artoriax 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 题目链接 http://acm.csu.edu.cn:20080/csuoj/problemset/problem?pid=1989 题目 Description A国一共有N座城市,由M条双向公路连接。小X现在位于S市,他正在赶往T市。小X的时间有限,他还剩下L的时间。另外,到达每座城市,小X都需 阅读全文
posted @ 2019-02-13 22:56 Artoriax 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 题目链接 http://acm.csu.edu.cn:20080/csuoj/problemset/problem?pid=1986 题目 Description 阴阳师子浩君,最近从《初等数论》,《线性代数》,《组合数学》三大玄学宝典中,取得了玄学的精髓,发现,当画出两个矩形组成的样子的图案时候, 阅读全文
posted @ 2019-02-13 17:12 Artoriax 阅读(319) 评论(0) 推荐(0) 编辑
摘要: 题目链接 http://acm.csu.edu.cn:20080/csuoj/problemset/problem?pid=1170 题目 Description ​ 在一个由N个整数组成的数列中,最多能找到多少个位置连续的整数且其中的最大值与最小值之差不超过K呢? Input ​ 输入包含若干组数 阅读全文
posted @ 2019-02-13 17:02 Artoriax 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 题目链接 http://acm.csu.edu.cn:20080/csuoj/problemset/problem?pid=2220 题目 Description Leha somehow found an array consisting of n integers. Looking at it, 阅读全文
posted @ 2019-02-13 16:53 Artoriax 阅读(100) 评论(0) 推荐(0) 编辑
摘要: 题目链接 "" 题目 Description 给定一个非递减数列Ai,你只需要支持一个操作:求一段区间内出现最多的数字的出现次数。 Input 第一行两个整数N,Q 接下来一行有N个整数,表示这个序列。 接下来Q行每行一个操作:A B,询问A到B之间出现最多的数字。 1 时间复杂度:预处理$o(nl 阅读全文
posted @ 2019-02-13 16:38 Artoriax 阅读(285) 评论(0) 推荐(0) 编辑