STL
nuoyanli
做题,反思,做题;刷题,总结,刷题;
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Hdu 5726 (st+rmq+二分 求相同gcd的区间数量,map计数)
题目来源 http://acm.hdu.edu.cn/showproblem.php?pid=5726 题面 题意 给定一个序列(len≤105,ai≤109len \leq 10^5,a_i \leq 10^9len≤105,ai≤109),给出q(q≤1∗105)q(q\leq1*10^5)q(q≤1∗105)个询问,对于每个询问给出一个区间[l,r](1≤l,r≤len)[l,r](1\...原创 2019-12-27 12:20:30 · 1720 阅读 · 0 评论 -
B. Game with string(cf)STL:stack
time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Two people are playing a game with a string ss, consisting of lowercase latin lette...原创 2019-01-23 10:29:14 · 1690 阅读 · 0 评论 -
1580-大鱼吃小鱼(栈)
题目来源:http://acm.nyist.cf/problem/1580 题目描述: 有N条鱼,在一条直线上移动。速度相同,两条鱼相遇大鱼会吃掉小鱼。 给出每条鱼的初始位置,大小,移动方向 时间足够长,最后还剩多少鱼。 所有鱼大小初始位置均不相同,位置5相对与位置2,5在2的右边。 输入描述: 多组输入,输入到文件结束,数据不超过100组。 每组数据第一行一个整数n(1 ...原创 2019-03-07 20:03:30 · 3702 阅读 · 0 评论 -
D. Colored Boots(div3 stl)
来源:https://codeforces.com/contest/1141/problem/D There arennleft boots andnnright boots. Each boot has a color which is denoted as a lowercase Latin letter or a question mark ('?'). Thus, you are...原创 2019-03-20 23:28:43 · 1564 阅读 · 0 评论 -
J - Bored Three-God (NBUT - 1228 )
题目来源: https://ac.2333.moe/Problem/view.xhtml?id=1220 https://cn.vjudge.net/contest/290636#problem/D 问题描述 The National Intelligence Council of X Nation receives a piece of credible information...原创 2019-03-29 14:19:40 · 1559 阅读 · 0 评论 -
G - Sliding Window POJ - 2823(单调队列 && 线段树写法(线段树板子))
题目来源: https://vjudge.net/contest/292642#problem/G http://poj.org/problem?id=2823 Description An array of size n ≤ 106 is given to you. There is a sliding window of size k which is moving from the ...原创 2019-04-05 07:50:16 · 3552 阅读 · 3 评论 -
codeForces 898C. Phone Numbers(STL模拟)
C. Phone Numbers time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Vasya has several phone books, in which he recorded the telephone number...原创 2019-03-28 00:00:56 · 1648 阅读 · 0 评论
分享