
STL
lyhvoyage
不抛弃,不放弃!
展开
-
NYOJ 150 Train Problem I STL栈
Train Problem I时间限制:3000 ms | 内存限制:65535 KB难度:2描述As the new term comes, the Ignatius Train Station is very busy nowadays. A lot of student want to get back to school by train(because原创 2013-05-29 13:18:12 · 1687 阅读 · 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 of oper原创 2014-04-08 13:31:31 · 2041 阅读 · 0 评论 -
NYOJ 1085 数单词 (AC自动机模板题)
数单词时间限制:1000 ms | 内存限制:65535 KB难度:4描述为了能够顺利通过英语四六级考试,现在大家每天早上都会早起读英语。LYH本来以为自己在6月份的考试中可以通过六级,可是没想到,成绩出来以后,居然没有通过。所以他不得不付出更多的时间来学习英语。要想通过六级,最基本的要求就是词汇量。为了能够更快的记住一些陌生单词,LYH有时会找一些原创 2014-09-29 08:20:06 · 2046 阅读 · 0 评论 -
hdu 4941 Magical Forest(STL之map应用)2014多校训练第7场
Magical Forest Time Limit: 24000/12000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Problem Description原创 2014-08-13 11:13:42 · 1743 阅读 · 0 评论 -
CodeForce 356A Knight Tournament(set应用)
Knight Tournamenttime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputHooray! Berl II, the king of Berland is m原创 2014-07-20 18:38:30 · 1720 阅读 · 0 评论 -
bnuoj 20950 沉重的货物 (最小生成树)
沉重的货物 Time Limit: 1000ms Memory Limit: 65536KB 64-bit integer IO format: %lld Java class name: Main CUITCPC是一个专门生产大型货运火车原创 2014-03-26 09:51:27 · 1987 阅读 · 0 评论 -
ZOJ 3612 Median (multiset)
Factorial Problem in Base KTime Limit: 2 Seconds Memory Limit: 65536 KBHow many zeros are there in the end of s! if both s and s! are written in base k which is not necessarily to be 10原创 2014-05-01 19:20:04 · 1402 阅读 · 0 评论 -
NYOJ 20 吝啬的国度 (搜索)
吝啬的国度时间限制:1000 ms | 内存限制:65535 KB难度:3描述在一个吝啬的国度里有N个城市,这N个城市间只有N-1条路把这个N个城市连接起来。现在,Tom在第S号城市,他有张该国地图,他想知道如果自己要去参观第T号城市,必须经过的前一个城市是几号城市(假设你不走重复的路)。输入第一行输入一个整数M表示测试数据共有M(1每组测试数据原创 2014-02-18 19:12:25 · 1585 阅读 · 0 评论 -
POJ 2431 Expedition (贪心 + 优先队列)
ExpeditionTime Limit: 1000MS Memory Limit: 65536K DescriptionA group of cows grabbed a truck and ventured on an expedition deep into the jungle. Being rather po原创 2014-03-01 10:02:43 · 4544 阅读 · 2 评论 -
hdu 1022 Train Problem I (栈的简单应用)
Train Problem ITime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Problem DescriptionAs the new term comes, the Ignatius Train Station is very busy nowadays原创 2014-01-19 17:07:37 · 4366 阅读 · 0 评论 -
POJ 1442 Black Box (优先队列)
Black BoxTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 6246 Accepted: 2532DescriptionOur Black Box represents a primitive database. It can save an int原创 2014-01-16 16:33:43 · 4467 阅读 · 0 评论 -
NYOJ 920 Trees
Trees时间限制:1000 ms | 内存限制:65535 KB难度:2描述 A graph consists of a set vertices and edges between pairs of vertices. Two vertices are connected if there is a path(subset of edges)原创 2013-11-28 11:07:00 · 1243 阅读 · 0 评论 -
NYOJ 933 Bob's Print Service
Bob's Print Service时间限制:1000 ms | 内存限制:65535 KB难度:3描述Bob is providing print service,while the pricing doesn't seem to be reasonable,so people using her price service found some tri原创 2013-11-24 17:33:50 · 1288 阅读 · 0 评论 -
NYOJ练习题 how many hairstyles can they see?
how many hairstyles can they see?时间限制:1000 ms | 内存限制:65535 KB描述Some of Farmer John's N cows (1 ≤ N ≤ 80,000) are having a bad hair day! Since each cow is self-conscious about her m原创 2013-10-22 12:39:28 · 1269 阅读 · 0 评论 -
STL之set集合容器
set集合容器实现了hongheish原创 2014-04-05 18:06:59 · 27612 阅读 · 4 评论