
STL
文章平均质量分 84
Edwardzcn
这个作者很懒,什么都没留下…
展开
-
2018.1.21【POJ - 1328】小岛与雷达解题报告(二维转一维,贪心)
Radar InstallationTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 96097 Accepted: 21364DescriptionAssume the coasting is an infinite straight line.原创 2018-01-22 16:20:06 · 538 阅读 · 0 评论 -
2018.1.20【HDU - 1027】解题报告(排列STL)
Ignatius and the Princess IITime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 9305 Accepted Submission(s): 5446Problem Description原创 2018-01-20 18:26:02 · 300 阅读 · 0 评论 -
2018.2.2【 CodeForces - 501B 】解题报告(STL,map,字符串处理)
B. Misha and Changing Handlestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputMisha hacked the Codeforces si原创 2018-02-02 00:39:57 · 279 阅读 · 0 评论 -
2018.2.1【 UVA - 156 】解题报告(STL,set,multiset,make_pair)
原题链接:点击打开链接【题目大意】ananagrams,指一系列单词由相同的字母构成(但顺序不同),输入一段文章,将非ananagrams输出,即没有与他字母构成相同但顺序不同的单词。【解题思路】本题学习了UVa 156 Ananagrams (用STL multimap&set处理字典中的重复元素),这位前辈的代码。思路即将每个单词s(处理后的状态)和origin(处理前状态原创 2018-02-01 20:32:09 · 269 阅读 · 0 评论 -
2018.2.1【 CodeForces - 527C 】解题报告(STL,set,边长和位置的维护)
C. Glass Carvingtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputLeonid wants to become a glass carver (the原创 2018-02-01 11:49:48 · 309 阅读 · 0 评论 -
2018.2.1【 UVA-11995 】解题报告(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 sequen原创 2018-02-01 11:07:07 · 232 阅读 · 0 评论 -
2018.1.30【 HDU - 1022 】解题报告(STL,stack,模拟)
Train Problem ITime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 41964 Accepted Submission(s): 15692Problem DescriptionAs the n原创 2018-01-30 21:30:58 · 288 阅读 · 0 评论 -
2018.1.30【 UVA - 10815 】解题报告(STL,set容器,string类)
原题目地址:点击打开链接【题目大意】给定一个文章段落,要求按字典序输出出现的所有单词(不重复)【解题思路】要求不重复且按照字典序排序,想到利用STL中的set容器,那么怎么在set里存储字符串呢?搜集了多种方法,最后发现还是利用C++string类来的方便,不过这就带来一个问题。printf,scanf只支持内置类型,对string类型不支持的。这时候不得以都要换上cin,co原创 2018-01-30 20:39:24 · 214 阅读 · 0 评论 -
2018.1.30【 CodeForces - 612C 】解题报告(STL,栈,strlen使用注意)
C. Replace To Make Regular Bracket Sequencetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given st原创 2018-01-30 15:56:49 · 251 阅读 · 0 评论 -
2018.1.30【 CodeForces - 620C 】解题报告(STL,set容器)
C. Pearls in a Rowtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere are n pearls in a row. Let's enume原创 2018-01-30 18:29:46 · 297 阅读 · 0 评论 -
2018.1.21【CodeForces - 825B】解题报告(模拟,五子棋)
B. Five-In-a-Rowtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputAlice and Bob play 5-in-a-row game. They ha原创 2018-01-22 17:49:51 · 312 阅读 · 0 评论 -
2018.1.21【POJ - 2260】解题报告(模拟,图论引申)
Error CorrectionTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 6820 Accepted: 4286DescriptionA boolean matrix has the parity property when each row原创 2018-01-22 17:39:33 · 266 阅读 · 0 评论 -
2018.1.22【HDU - 1716】解题报告(排列STL)
排列2Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 9524 Accepted Submission(s): 3467Problem DescriptionRay又对数字的列产生了兴趣:现有四张卡原创 2018-01-22 15:47:53 · 379 阅读 · 0 评论 -
2018.1.22【CodeForces - 600C】解题报告(贪心,字符串)
C. Make Palindrometime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputA string is called palindrome if it read原创 2018-01-22 16:05:35 · 361 阅读 · 0 评论 -
2018.1.29【 AtCoder Beginner Contest 087-D 】解题报告(TLE)(STL,队列)
D - People on a LineTime limit : 2sec / Memory limit : 256MBScore : 400 pointsProblem StatementThere are N people standing on the x-axis. Let the coordinate of Person i be xi.原创 2018-01-29 01:29:42 · 409 阅读 · 0 评论