![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
STL
文章平均质量分 77
笑着走完自己的路
这个作者很懒,什么都没留下…
展开
-
hdoj 4268 Alice and Bob 【贪心 + set】
题目链接:hdoj 4268 Alice and BobAlice and BobTime Limit: 10000/5000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 4156 Accepted Submission(s): 1301Problem De原创 2016-04-24 18:37:36 · 397 阅读 · 0 评论 -
Codeforces 612C Replace To Make Regular Bracket Sequence 【stack】
C. Replace To Make Regular Bracket Sequencetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given st原创 2016-01-12 17:47:10 · 714 阅读 · 0 评论 -
poj 2718 Smallest Difference 【STL + dfs】
Smallest DifferenceTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 6537 Accepted: 1780DescriptionGiven a number of distinct decimal digits, you can fo原创 2015-12-20 14:04:31 · 794 阅读 · 0 评论 -
poj 3187 Backward Digit Sums 【STL暴力】
Backward Digit SumsTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 5413 Accepted: 3123DescriptionFJ and his cows enjoy playing a mental game. They wri原创 2015-12-20 13:35:04 · 403 阅读 · 0 评论 -
hdoj 5249 KPI 【STL】
KPITime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1093 Accepted Submission(s): 469Problem Description你工作以后, KPI 就是你的全部了. 我开发原创 2016-01-15 22:21:59 · 313 阅读 · 0 评论 -
hdoj 1755 A Number Puzzle 【STL】
A Number PuzzleTime Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1185 Accepted Submission(s): 367Problem DescriptionLele 最近上课的时原创 2016-01-15 22:20:40 · 393 阅读 · 0 评论 -
hdoj 4941 Magical Forest 【STL map】
Magical ForestTime Limit: 24000/12000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 1287 Accepted Submission(s): 580Problem DescriptionThere is原创 2015-10-23 17:13:22 · 410 阅读 · 0 评论 -
vector中 迭代器的使用 以及元素的去重、排序、插入、删除操作。 【小笔记】
vector原创 2015-09-17 14:34:46 · 3551 阅读 · 0 评论 -
hdoj 2871 Memory Control 【线段树lazy + 区间合并 + 二维vector的查询、插入、删除】
Memory ControlTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 5591 Accepted Submission(s): 1299Problem DescriptionMemory unit原创 2015-09-17 19:58:18 · 594 阅读 · 0 评论 -
hdoj 4666 Hyperspace 【最远曼哈顿距离】
HyperspaceTime Limit: 20000/10000 MS (Java/Others) Memory Limit: 65535/65535 K (Java/Others)Total Submission(s): 1219 Accepted Submission(s): 580Problem DescriptionThe great Mr.S原创 2016-02-14 16:52:53 · 517 阅读 · 0 评论 -
Codeforces 632C The Smallest String Concatenation 【string】
C. The Smallest String Concatenationtime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou're given a list of原创 2016-03-04 22:09:59 · 452 阅读 · 0 评论 -
Codeforces 639A Bear and Displayed Friends 【STL】
题目链接:Codeforces 639A Bear and Displayed FriendsA. Bear and Displayed Friends time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Limak is a原创 2016-04-08 16:59:40 · 466 阅读 · 0 评论 -
hdoj 5479 Scaena Felix 【Stack】
题目链接:hdoj 5479 Scaena FelixScaena FelixTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 763 Accepted Submission(s): 325Problem Descrip原创 2016-04-08 16:58:24 · 580 阅读 · 0 评论 -
zzulioj 1730: 通信基站 【全排列 + DFS】
题目:链接思路:暴力,方法有很多。。。说下我的写法——首先N最大为8,那么我们直接枚举在那些点建基电站。这里直接一个全排列就可以了,1代表建,0代表不建。我们把0的点存为a[],1的点存为b[],然后就是从b[]里面选若干个点引半径做圆 来覆盖a[]里面的所有点,只需要求出最小半径和即可。求最小半径和直接DFS就好了,在DFS的过程中维护b[]中每个点所引最大半径,最后求和。原创 2016-02-29 21:05:33 · 589 阅读 · 0 评论 -
hihoCoder #1269 : 优化延迟 【二分 + 优先队列】
题目链接:hihoCoder #1269 : 优化延迟原创 2016-03-12 19:00:56 · 381 阅读 · 0 评论 -
hdoj 1896 Stones 【优先队列】
题目链接:hdoj 1896 Stones原创 2016-03-12 18:59:40 · 382 阅读 · 0 评论 -
hdoj 1716 排列2 【STL】
题目链接:hdoj 1716 排列2原创 2016-03-12 18:59:08 · 358 阅读 · 0 评论 -
hdoj 1434 幸福列车 【优先队列】
题目链接:hdoj 1434 幸福列车幸福列车Time Limit: 20000/10000 MS (Java/Others) Memory Limit: 131070/65535 K (Java/Others) Total Submission(s): 2134 Accepted Submission(s): 662Problem Description 一批幸福的列原创 2016-04-04 16:30:55 · 401 阅读 · 0 评论 -
Codeforces 367B Sereja ans Anagrams 【map维护queue】
题目链接:Codeforces 367B Sereja ans AnagramsB. Sereja ans Anagrams time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Sereja has two sequences原创 2016-04-01 19:06:06 · 611 阅读 · 0 评论 -
Codeforces 644B Processing Queries【STL】
题目链接:Codeforces 644B Processing Queries原创 2016-03-19 11:21:12 · 362 阅读 · 0 评论 -
hdoj 5437 Alisha’s Party 【优先队列 模拟】
Alisha’s PartyTime Limit: 3000/2000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 1216 Accepted Submission(s): 346Problem DescriptionPrincess A原创 2015-09-14 19:14:45 · 514 阅读 · 0 评论 -
poj 3984 迷宫问题 【BFS + 优先队列 + stack路径记录】
迷宫问题Time Limit: 1000MS Memory Limit: 65536KTotal Submissions: 10105 Accepted: 6007Description定义一个二维数组: int maze[5][5] = { 0, 1, 0, 0, 0, 0, 1, 0原创 2015-06-22 22:14:06 · 649 阅读 · 2 评论 -
poj 3061 Subsequence 【尺取法 or STL lower_bound】
SubsequenceTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 9729 Accepted: 3914DescriptionA sequence of N positive integers (10 < N < 100 000), each of原创 2015-06-16 22:47:55 · 529 阅读 · 0 评论 -
poj 3320 Jessica's Reading Problem 【尺取法+STLmap set】
Jessica's Reading ProblemTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 7893 Accepted: 2529DescriptionJessica's a very lovely girl wooed by lots of原创 2015-06-17 14:06:51 · 915 阅读 · 0 评论 -
poj 1363 Rails 【栈】
RailsTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 27587 Accepted: 10741DescriptionThere is a famous railway station in PopPush City. Country ther原创 2015-06-16 20:30:18 · 468 阅读 · 0 评论 -
hdoj 1075 What Are You Talking About 【STL map+string】
What Are You Talking AboutTime Limit: 10000/5000 MS (Java/Others) Memory Limit: 102400/204800 K (Java/Others)Total Submission(s): 15526 Accepted Submission(s): 4995Problem Descriptio原创 2015-05-13 19:46:45 · 599 阅读 · 0 评论 -
nyoj 2 括号配对问题
括号配对问题时间限制:3000 ms | 内存限制:65535 KB难度:3描述 现在,有一行括号序列,请你检查这行括号是否配对。输入第一行输入一个数N(0输出每组输入数据的输出占一行,如果该字符串中所含的括号是配对的,则输出Yes,如果不配对则输出No样例输入3[(])(])([[]()])样例输出NoNoYes不原创 2015-01-04 18:15:39 · 462 阅读 · 0 评论 -
hdoj 2612 Find a way
Find a wayTime Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4834 Accepted Submission(s): 1643Problem DescriptionPass a year learn原创 2015-04-02 19:02:57 · 781 阅读 · 0 评论 -
hdoj 1870 愚人节的礼物
愚人节的礼物Time Limit: 5000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 5869 Accepted Submission(s): 3549Problem Description四月一日快到了,Vayko想了个愚人的好办原创 2015-03-23 19:55:47 · 444 阅读 · 0 评论 -
hdoj 1702 ACboy needs your help again!
ACboy needs your help again!Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 3953 Accepted Submission(s): 1996Problem Description原创 2015-03-23 19:52:11 · 445 阅读 · 0 评论 -
hdoj 1022 Train Problem I
Train Problem ITime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 23568 Accepted Submission(s): 8904Problem DescriptionAs the new原创 2015-03-23 22:20:00 · 441 阅读 · 0 评论 -
hdoj 1251 统计难题 【STL map+string】 【字典树基础题】
统计难题Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 131070/65535 K (Java/Others)Total Submission(s): 21384 Accepted Submission(s): 9194Problem DescriptionIgnatius最近遇到一个难题,老师交给原创 2015-05-13 13:15:36 · 718 阅读 · 0 评论 -
hdoj 1004 Let the Balloon Rise 【STL or 暴力】
Let the Balloon RiseTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 87728 Accepted Submission(s): 33171Problem DescriptionC原创 2015-06-23 21:41:43 · 482 阅读 · 0 评论 -
hdoj 4006 The kth great number【优先队列】
The kth great numberTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65768/65768 K (Java/Others)Total Submission(s): 8578 Accepted Submission(s): 3378Problem DescriptionXia原创 2015-08-09 22:23:22 · 430 阅读 · 0 评论 -
hdoj 3785 寻找大富翁 【水题】【优先队列 or sort】
寻找大富翁Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4600 Accepted Submission(s): 1876Problem Description浙江桐乡乌镇共有n个人,请找出该镇上的前原创 2015-07-29 11:39:01 · 412 阅读 · 0 评论 -
hdoj 1509 Windows Message Queue 【STL 优先队列】
Windows Message QueueTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 4341 Accepted Submission(s): 1719Problem DescriptionMessag原创 2015-07-28 14:21:50 · 489 阅读 · 0 评论 -
hdoj 1873 看病要排队 【STL 优先队列】
看病要排队Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 5862 Accepted Submission(s): 2412Problem Description看病要排队这个是地球人都知道的常识。不过原创 2015-07-28 14:57:53 · 507 阅读 · 0 评论 -
nyoj 35 表达式求值 【栈】
表达式求值时间限制:3000 ms | 内存限制:65535 KB难度:4描述 ACM队的mdd想做一个计算器,但是,他要做的不仅仅是一计算一个A+B的计算器,他想实现随便输入一个表达式都能求出它的值的计算器,现在请你帮助他来实现这个计算器吧。比如输入:“1+2/4=”,程序就输出1.50(结果保留两位小数)输入第一行输入一个整数n,共有n组测原创 2015-05-24 21:36:37 · 660 阅读 · 0 评论 -
hdoj 4302 Holedox Eating 【优先队列】
Holedox EatingTime Limit: 4000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 3468 Accepted Submission(s): 1188Problem DescriptionHoledox is a原创 2015-04-26 20:41:23 · 406 阅读 · 0 评论 -
poj 2457 Part Acquisition 【spfa最短路 + STL路径输出】
Part AcquisitionTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 3900 Accepted: 1689 Special JudgeDescriptionThe cows have been sent on a mission t原创 2015-06-25 20:58:21 · 843 阅读 · 0 评论