
优先队列
__铭
这个作者很懒,什么都没留下…
展开
-
poj 2442 Sequence
Description Given m sequences, each contains n non-negative integer. Now we may select one number from each sequence to form a sequence with m integers. It's clear that we may get n ^ m this kind of原创 2015-08-17 21:30:01 · 352 阅读 · 0 评论 -
poj 1442 Black Box
Description Our 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原创 2015-08-17 21:30:26 · 375 阅读 · 0 评论 -
sdut 3334 数据结构实验之栈七:出栈序列判定
数据结构实验之栈七:出栈序列判定 Time Limit: 30MS Memory limit: 1000K 题目描述 给一个初始的入栈序列,其次序即为元素的入栈次序,栈顶元素可以随时出栈,每个元素只能入栈依次。输入一个入栈序列,后面依次输入多个序列,请判断这些序列是否为所给入栈序列合法的出栈序列。 例如序列1,2,3,4,5是某栈的压入顺序,序列4,5,3,2,1是该压栈序原创 2015-10-07 22:49:23 · 1864 阅读 · 0 评论 -
HDU 5347 多校赛1007 MZL's simple problem
Problem Description A simple problem Problem Description You have a multiple set,and now there are three kinds of operations: 1 x : add number x to set 2 : delete the minimum number (if the set is原创 2015-08-04 15:43:37 · 405 阅读 · 0 评论