STL
13vickey
从不思考到底离梦的距离有多远,走一步注定会近一步,一步一步,用旅途的努力来收获成长。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
hdu 1896 Stones 优先队列
Stones Problem Description Because of the wrong status of the bicycle, Sempr begin to walk east to west every morning and walk back every evening. Walking may cause a little tired, so Sempr always p原创 2014-02-10 01:18:36 · 924 阅读 · 0 评论 -
zoj 3700 模拟+STL vector
Ever Dream Time Limit: 2 Seconds Memory Limit: 65536 KB "Ever Dream" played by Nightwish is my favorite metal music. The lyric (see Sample Input) of this song is much more like a poem原创 2014-04-30 13:31:32 · 575 阅读 · 0 评论 -
poj 2003 Hire and Fire list+hash+模拟
http://poj.org/problem?id=2003 题意:给一公司制度,yi ce原创 2014-05-01 15:50:44 · 767 阅读 · 0 评论 -
排列 STL
Description 题目描述: 大家知道,给出正整数n,则1到n这n个数可以构成n!种排列,把这些排列按照从小到大的顺序(字典顺序)列出,如n=3时,列出1 2 3,1 3 2,2 1 3,2 3 1,3 1 2,3 2 1六个排列。 任务描述: 给出某个排列,求出这个排列的下k个排列,如果遇到最后一个排列,则下1排列为第1个排列,即排列1 2 3…n。 比如:n原创 2014-04-16 19:03:56 · 512 阅读 · 0 评论 -
The tough time <set>
题意: 公司每年要解除value最小的女工,然后再照进来一位,当value 同时最小时,开除 标号比较大的那位。 已知N : a[i] 代表 i 号女工的vaue, M:b[i]: 第i年招进来的员工的value 输出 每年开除的员工的标号,以及当前她的value #include #include #include #include #include #include #inclu原创 2014-03-25 13:49:06 · 635 阅读 · 0 评论 -
擅长排列的小明 STL set应用
擅长排列的小明 描述 小明十分聪明,而且十分擅长排列计算。比如给小明一个数字5,他能立刻给出1-5按字典序的全排列,如果你想为难他,在这5个数字中选出几个数字让他继续全排列,那么你就错了,他同样的很擅长。现在需要你写一个程序来验证擅长排列的小明到底对不对。 输入第一行输入整数N(1 每组测试数据第一行两个整数 n m (1输出在1-n中选取m个字符进行全排列,按字典序全部输出,每种排列占一行原创 2014-04-09 10:20:40 · 524 阅读 · 0 评论 -
Same binary weight 数学
Same binary weight 描述 The binary weight of a positive integer is the number of 1's in its binary representation.for example,the decmial number 1 has a binary weight of 1,and the decimal number 171原创 2014-04-09 11:02:52 · 646 阅读 · 0 评论 -
09年广东省赛E题 STL应用
题意: N个人写了N篇论文,a[i][j] 代表原创 2014-04-12 23:00:54 · 533 阅读 · 0 评论 -
CF problem-56-E. Domino Principle 维护栈
E. Domino Principle time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Vasya is interested in arranging dominoes. He is原创 2014-08-10 13:57:09 · 800 阅读 · 0 评论
分享