随笔分类 - 数据结构---栈与队列
摘要:题目链接:https://codeforces.com/problemset/problem/950/C CSDN食用链接:https://blog.csdn.net/qq_43906000/article/details/107863150 Oleg writes down the history
阅读全文
摘要:题目链接:http://acm.csust.edu.cn/problem/4003 CSDN食用链接:https://blog.csdn.net/qq_43906000/article/details/107739654 Description 高铁上有$n$个人第$i$个人编号为$i$他在$s_i
阅读全文
摘要:题目链接:http://acm.csust.edu.cn/problem/2009 CSDN食用链接:https://blog.csdn.net/qq_43906000/article/details/107664641 Description You are given two integers
阅读全文
摘要:题目说明: A.All with Pairs(KMP+Hash) B.Boundary(计算几何-三点定圆) C.Cover the Tree(思维+dfs序) D.Duration(签到题-模拟) F.Fake Maxpooling(单调队列) G.Greater and Greater(黑科技b
阅读全文
摘要:题目链接:https://codeforces.com/problemset/problem/91/B 题目大意:给你一个倒置的序列,让你找到每个数的前面离他最远的那个数和它中间隔了多少个数,如果没有,输出-1 Examples Input 610 8 5 3 50 45 Output 2 1 0
阅读全文
摘要:题目链接:https://codeforces.com/problemset/problem/372/C 题目大意:有$n$个路段,$m$次放烟花,第$i$个烟花在第$t_i$时间在第$a_i$个路段燃放,可获得的价值为$b_i$,如果第$i$个烟花燃放的时候你在位置$x$那么,你将会获得$b_i-
阅读全文
摘要:题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4122 题目大意:第一行n,m;随后n行代表在某年某月某日有人预定x个月饼,随后一行t,s,月饼最长保存时间和每个月饼保存一小时的费用。随后m行,在0-m的时间制作月饼需要的费用。求完成订单需要的最小成本
阅读全文
摘要:题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=3706 题目大意:定义$S_i=A^imodB$,$T_i=min(S_k|i-A<=k<=i,k>=1)$,让你计算$T_i$的乘积对$B$取余 Sample Input 1 2 3 2 3 4 3 4
阅读全文
摘要:题目链接:http://poj.org/problem?id=2559 题目大意:给你n个长方形,每个长方形的高为$h_i$,底为1,问最大的矩形面积可以是多少 Sample Input 7 2 1 4 5 1 3 3 4 1000 1000 1000 1000 0 Sample Output 8
阅读全文
摘要:题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=3530 题目大意:找到一个最大的子串,使得子串区间内最大值和最小值的差在L和R范围内。 Sample Input 5 0 0 1 1 1 1 1 5 0 3 1 2 3 4 5 Sample Output
阅读全文
摘要:Time Limit: 1 Sec Memory Limit: 162 MB 题目链接:https://www.lydsy.com/JudgeOnline/problem.php?id=1010 洛谷:https://www.luogu.com.cn/problem/P3195 Descriptio
阅读全文
摘要:Time Limit: 1 Sec Memory Limit: 162 MB洛谷:时间限制1.50s 内存限制125.00MB 题目链接:https://www.lydsy.com/JudgeOnline/problem.php?id=1007 洛谷:https://www.luogu.com.cn
阅读全文


浙公网安备 33010602011771号