
C++容器、函数等
Dust_Heart
这个作者很懒,什么都没留下…
展开
-
牛客练习赛59 石子搬运【优先队列+思维】
石子搬运Time Limit: 1000 MS Memory Limit: 262144K Problem Description链接:https://ac.nowcoder.com/acm/contest/4743/E来源:牛客网有n堆石子,第i堆石子的石子数量是ai,作为牛客网的一头领头牛,牛牛决定把这些石子搬回牛客。如果牛牛一次搬运的石子数量是k,那么这堆石子将对牛牛产生k2...原创 2020-03-13 22:06:26 · 967 阅读 · 0 评论 -
HDOJ 1506 Largest Rectangle in a Histogram(单调栈)
LargestRectangle in a HistogramTime Limit: 2000/1000 MS(Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 17953 Accepted Submission(s): 5368Problem Description原创 2017-04-18 20:47:46 · 337 阅读 · 0 评论 -
HDOJ 1505 City Game (单调栈)
City GameTime Limit: 2000/1000 MS(Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 6965 Accepted Submission(s): 3010Problem DescriptionBob is a strategy gam原创 2017-04-18 22:13:50 · 388 阅读 · 0 评论 -
HDOJ 5101 Select(upper_bound的运用)
SelectTime Limit: 4000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1887 Accepted Submission(s): 539Problem DescriptionOne day, Dudu, the mos原创 2017-04-05 21:43:33 · 287 阅读 · 0 评论 -
CF Round #424( Div.2) C. Jury Marks 【思维+STL】
CF Round #424( Div.2) C. Jury Marks 【思维+STL】Polycarp watched TV-show where k jury members one by one rated aparticipant by adding him a certain number of points (may be negative,i. e. points were subtracted). Initially the participant had some score,and原创 2017-07-14 01:58:06 · 1259 阅读 · 0 评论 -
2017 Multi-University Training Contest 5 &&HDU 6085 Rikka with Candies 【bitset+思维】
HDU 6085 Rikka with Candies 【bitset】As we know, Rikka is poor at math. Yuta is worrying about this situation, so he gives Rikka some math tasks to practice. There is one of them:There are nchildren and mkinds of candies. The ith child has Aidol原创 2017-08-09 17:01:25 · 426 阅读 · 0 评论 -
C++容器list和deque的基本用法
list定义和初始化:list<int>lst1; //创建空list list<int> lst2(5); //创建含有5个元素的list,初始为0list<int>lst3(3,2); //创建含有3个元素的list list<int>lst4(lst2); //使用lst2初始化lst...原创 2018-09-10 21:01:02 · 606 阅读 · 0 评论