
STL
7hgTnec
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
UVa 1593代码对齐
大体题意为 给数行代码 要求将代码左对齐,而且尽量的靠左 每个单词之间至少有一个空格 单词长度不超过80,每行不超过180个字符,最多1000行 值得注意的是每一行的最后是没有任何空格的(在这挂了数次) 解题思想利用vector & string来储存每行代码中的单词和每个单词的长度,统计每一列的最长单词,然后按照最长单词为基准输出即可 注意最后一个单词不需要遵循最长原创 2015-12-03 13:46:03 · 795 阅读 · 0 评论 -
UVa 1594 Ducci队列
A Ducci sequence is a sequence of n-tuples of integers. Given an n-tuple of integers (a1,a2,···,an), the next n-tuple in the sequence is formed by taking the absolute differences of neighboring intege原创 2015-12-03 14:36:46 · 565 阅读 · 0 评论 -
STL小根堆的操作符重载(笔记)(小小的水一把)
有位博主的博客写的挺好的 http://www.cnblogs.com/mfryf/archive/2012/09/05/2671883.html #include using namespace std; priority_queue 默认为大根堆,抛出最大元素 priority_queueT>, greater > 改为小根堆,抛出最小元素原创 2016-08-13 17:58:11 · 2535 阅读 · 0 评论