![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
STL
舒然---小广广
这个作者很懒,什么都没留下…
展开
-
寻找倍数<set集合使用>
Problem B: 寻找倍数Time Limit: 1 Sec Memory Limit: 128 MBSubmit: 162 Solved: 96[Submit][Status][Web Board]Description给出n(n来的数的和是n的整数倍Input第一行一个T(TOutputCase #x: y,其中x是测原创 2017-07-15 17:02:34 · 319 阅读 · 0 评论 -
优先队列的使用方法+OJ案例讲解
今天也是第一次尝试着使用了优先队列来做题其实很早就学过优先队列,但是一直处于的是理论阶段,并没有实际的利用过。百度百科上的解释是:优先队列(priority queue)普通的队列是一种先进先出的数据结构,元素在队列尾追加,而从队列头删除。在优先队列中,元素被赋予优先级。当访问元素时,具有最高优先级的元素最先删除。优先队列具有最高级先出 (first in, large原创 2017-07-24 13:11:52 · 1533 阅读 · 0 评论 -
Codeforces 527C Glass Carving<set集合和multiset集合的使用>
C. Glass Carvingtime limit per test 2 secondsmemory limit per test 256 megabytesinput standard inputoutput standard outputLeonid wants to become a glass carver原创 2017-07-27 09:31:07 · 355 阅读 · 0 评论 -
UVA 11995 I Can Guess the Data Structure!<STL数据结构使用>
I Can Guess the Data Structure!There is a bag-like data structure, supporting two operations:1 xThrow an element x into the bag.2Take out an element from the bag.Given a sequence原创 2017-07-26 11:36:50 · 425 阅读 · 0 评论 -
Surprising Strings<map集合使用>
Surprising Strings Problem DescriptionThe D-pairs of a string of letters are the ordered pairs of letters that are distance D from each other. A string is D-unique if all of its D-pairs ar原创 2017-07-24 10:58:21 · 375 阅读 · 0 评论 -
Languages<stringstream的使用+map集合的使用>
Languages The Enterprise has encountered a planet that at one point had been inhabited. The only remnant from the prior civilization is a set of texts that was found. Using a small s原创 2017-07-24 16:17:49 · 410 阅读 · 0 评论 -
Jury Marks <思维题>
Jury Marks Polycarp watched TV-show where k jury members one by one rated a participant by adding him a certain number of points (may be negative, i. e. points were subtracted).原创 2017-07-24 17:52:32 · 384 阅读 · 0 评论 -
C++ STL基本容器的使用
最近常用一些STL里的容器,但是总是忘记内在的函数啊,方法什么的,从网上转载一个大佬写的,STL容器的使用,蛮不错的,收藏收藏C++中有两种类型的容器:顺序容器和关联容器。顺序容器主要有vector、list、deque等。其中vector表示一段连续的内存,基于数组实现,list表示非连续的内存,基于链表实现,deque与vector类似,但是对首元素提供插入和删除的双向转载 2017-08-01 14:17:09 · 267 阅读 · 0 评论 -
STL的使用方法(很全)
1. 概述泛型编程思想最早缘于A.Stepanov提出的部分算法可独立于数据结构的论断。20世纪90年代初A.Stepanov和Meng Lee根据泛型编程的理论用C++共同编写了STL。但直至1998年,STL才成为C++的正式标准。在后来的几年中,各大主流编译器也都相继加入了对STL的支持,至此STL才开始得到广泛的应用。STL体现的是泛型编程的核心思想:独立数据结构和算法(这是转载 2017-08-01 14:14:24 · 28939 阅读 · 4 评论 -
HDU 1800 Flying to the Mars
Flying to the MarsTime Limit: 5000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 6545 Accepted Submission(s): 2130Problem Description原创 2017-08-07 20:43:45 · 320 阅读 · 0 评论 -
无法言表<SET集合的使用>
Problem D: 无法言表Time Limit: 1 Sec Memory Limit: 128 MBSubmit: 210 Solved: 82[Submit][Status][Web Board]Description给出N个数,要求把其中的重复的去掉,只保留第一次出现的数.1 Input第一行T(TOutputCase原创 2017-07-15 16:47:56 · 420 阅读 · 0 评论 -
1588: [HNOI2002]营业额统计(STL lower_bound使用)
1588: [HNOI2002]营业额统计Time Limit: 5 Sec Memory Limit: 162 MBSubmit: 18457 Solved: 7701[Submit][Status][Discuss]Description营业额统计 Tiger最近被公司升任为营业部经理,他上任后接受公司交给的第一项任务便是统计并分析公司成立以来的营业情况。 Tiger拿出了公司的账本,账本...原创 2018-03-17 08:52:41 · 254 阅读 · 0 评论