随笔分类 -  栈和队列

摘要:Maximum Xor Secondary CodeForces - 280B Bike loves looking for the second maximum element in the sequence. The second maximum element in the sequence 阅读全文
posted @ 2018-11-19 20:35 *starry* 阅读(391) 评论(0) 推荐(1)
摘要:Prime Permutation codeforces 123A You are given a string s, consisting of small Latin letters. Let's denote the length of the string as |s|. The chara 阅读全文
posted @ 2018-10-07 22:59 *starry* 阅读(239) 评论(0) 推荐(0)
摘要:vj链接:Producing Snow 题目大意: 给定长度n(n<=1e5),第一行v[i]表示表示第i堆雪的体积,第二行t[i]表示第1~i天的雪将要消融的体积,一堆雪如果消融到体积为0则消失,求每天消融的雪的体积。 输入输出: Input 310 10 55 7 2 Input Output 阅读全文
posted @ 2018-07-22 16:02 *starry* 阅读(208) 评论(0) 推荐(0)
摘要:vj链接: https://vjudge.net/contest/235444#problem/E 题意: 有n件T恤,正面与背面印有颜色,有m个顾客依次来买,每人有一种喜欢的颜色,他会买正面或背面有这种颜色的最便宜的衣服,如果没有就不买,问每人花的钱数。 例如 输入: 阅读全文
posted @ 2018-07-08 16:33 *starry* 阅读(198) 评论(0) 推荐(0)