摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5542 Problem DescriptionCao Cao made up a big army and was going to invade the whole South China. Yu Zh 阅读全文
posted @ 2018-11-02 21:44 Dilthey 阅读(377) 评论(1) 推荐(0) 编辑
摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4699 Problem Description Sample Input8I 2I -1I 1Q 3LDRQ 2 Sample Output23 Hint 题意: 维护一个整数序列的编辑器,有以下五种操作 阅读全文
posted @ 2018-11-02 16:10 Dilthey 阅读(314) 评论(0) 推荐(0) 编辑
摘要: 题目链接:https://leetcode-cn.com/problems/min-stack/description/ 设计一个支持 push,pop,top 操作,并能在常数时间内检索到最小元素的栈。 push(x) -- 将元素 x 推入栈中。pop() -- 删除栈顶的元素。top() -- 阅读全文
posted @ 2018-11-02 15:11 Dilthey 阅读(348) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://codeforces.com/gym/101873/problem/I 题意: 给出 $n(1 \le n \le 300000)$ 个单位时间,每个单位时间给出一个 $x_i(0 \le x_i \le 32)$ 代表该单位时间内视野内的敌人数目。 现在你有一个终极武器,每 阅读全文
posted @ 2018-11-02 14:02 Dilthey 阅读(365) 评论(0) 推荐(0) 编辑