STL
BYSora
这个作者很懒,什么都没留下…
展开
-
poj2503——Babelfish(STL,map)
DescriptionYou have just moved from Waterloo to a big city. The people here speak an incomprehensible dialect of a foreign language. Fortunately, you have a dictionary to help you understand them. Inp原创 2016-05-18 19:30:53 · 895 阅读 · 0 评论 -
hdu5058——So easy(STL)
Problem Description Small W gets two files. There are n integers in each file. Small W wants to know whether these two files are same. So he invites you to write a program to check whether these two f原创 2017-04-02 16:10:12 · 528 阅读 · 0 评论 -
CSU1113——Updating a Dictionary(STL)
Description In this problem, a dictionary is collection of key-value pairs, where keys are lower-case letters, and values are non-negative integers. Given an old dictionary and a new dictionary, find原创 2017-04-11 09:25:14 · 778 阅读 · 0 评论 -
蓝桥杯算法提高——队列操作(STL)
问题描述 队列操作题。根据输入的操作命令,操作队列(1)入队、(2)出队并输出、(3)计算队中元素个数并输出。 输入格式 第一行一个数字N。 下面N行,每行第一个数字为操作命令(1)入队、(2)出队并输出、(3)计算队中元素个数并输出。 输出格式 若干行每行显示一个2或3命令的输出结果。注意:2.出队命令可能会出现空队出队(下溢),请输出“no”,并退出。 样例输入原创 2017-03-28 19:15:42 · 731 阅读 · 0 评论 -
poj1442——Black Box(优先队列)
DescriptionOur Black Box represents a primitive database. It can save an integer array and has a special i variable. At the initial moment Black Box is empty and i equals 0. This Black Box processes a原创 2017-02-12 11:52:46 · 705 阅读 · 0 评论 -
poj2418——Hardwood Species(stl+map)
DescriptionHardwoods are the botanical group of trees that have broad leaves, produce a fruit or nut, and generally go dormant in the winter. America’s temperate climates produce forests with hundred原创 2017-01-21 15:12:29 · 715 阅读 · 0 评论 -
poj3253——Fence Repair(哈夫曼)
DescriptionFarmer John wants to repair a small length of the fence around the pasture. He measures the fence and finds that he needs N (1 ≤ N ≤ 20,000) planks of wood, each having some integer length L原创 2017-02-10 21:04:19 · 650 阅读 · 0 评论 -
hdu1029——Ignatius and the Princess IV
Problem Description “OK, you are not too bad, em… But you can never pass the next test.” feng5166 says.“I will tell you an odd number N, and then N integers. There will be a special integer among them原创 2016-11-18 18:17:34 · 734 阅读 · 0 评论 -
Lightoj1212——Double Ended Queue(STL)
A queue is a data structure based on the principle of ‘First In First Out’ (FIFO). There are two ends; one end can be used only to insert an item and the other end to remove an item. A Double Ended Que原创 2016-09-05 21:10:02 · 847 阅读 · 0 评论 -
hdu2072——单词数(STL,set)
Problem Description lily的好朋友xiaoou333最近很空,他想了一件没有什么意义的事情,就是统计一篇文章里不同单词的总数。下面你的任务是帮助xiaoou333解决这个问题。Input 有多组数据,每组一行,每组就是一篇小文章。每篇小文章都是由小写字母和空格组成,没有标点符号,遇到#时表示输入结束。Output 每组只输出一个整数,其单独成行,该整数代表一篇文章里不同单原创 2016-05-04 20:46:57 · 817 阅读 · 0 评论 -
poj3096——Surprising Strings(STL)
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 are different. A string is surprising if i原创 2017-04-25 10:58:00 · 929 阅读 · 0 评论