
紫书-STL
文章平均质量分 63
daguge1
情不知所起,一往而深
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
e5-1 uva10474
题 本题注意lower_bound 函数的应用,查找大于或等于x的第一个位置 lower_bound(a,a+n,x)#include <iostream> #include<algorithm> using namespace std; /* run this program using the console pauser or add your own getch, system("pau原创 2015-04-30 08:19:38 · 323 阅读 · 0 评论 -
5-4交换学生uva10763
1、问题描述 2、有配对的方式,我们考虑到可以用图的比拟方法来近似,可建立邻接表,对每一个新的“坐标”,我们可以对其进行审查,来确定是否插入邻接表。#include <iostream> #include<vector> using namespace std;/* run this program using the console pauser or add your own getch, s原创 2015-05-17 19:41:55 · 670 阅读 · 0 评论 -
5-1 代码对齐 UVA1593
1、问题描述: You are working in a team that writes Incredibly Customizable Programming Codewriter (ICPC) which is basically a text editor with bells and whistles. You are working on a module that takes a p原创 2015-05-17 19:25:19 · 377 阅读 · 0 评论 -
5-2DUCCI序列 uva1594
1、问题描述: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 neighborin原创 2015-05-17 19:30:44 · 536 阅读 · 0 评论 -
e5-6UVA540
1、问题描述: Queues and Priority Queues are data structures which are known to most computer scientists. The Team Queue, however, is not so well known, though it occurs often in everyday life. At lunch tim原创 2015-05-07 21:57:39 · 466 阅读 · 0 评论 -
e5-7uva136 丑数
1、问题描述: Ugly numbers are numbers whose only prime factors are 2, 3 or 5. The sequence 1, 2, 3, 4, 5, 6, 8, 9, 10, 12, 15, … shows the first 11 ugly numbers. By convention, 1 is included. Write a progr原创 2015-05-14 13:33:12 · 427 阅读 · 0 评论 -
e5-4 uva165
1、问题描述 Download as PDFMost crossword puzzle fans are used to anagrams–groups of words with the same letters in different orders–for example OPTS, SPOT, STOP, POTS and POST. Some words however do not h原创 2015-05-06 22:59:59 · 372 阅读 · 0 评论 -
e5-5uva12096
1、问题。。。由程序还原吧 2、本题的亮点在于#define all(x) x.begin(),x.end() #define ins(x) inserter(x,x.begin())可以在算法中节省很多的代码量 set_union(all(x1),all(x2),ins(x))(完整版:set_union(x1.begin(),x1.end(),x2.begin(),x2.end(),x,x.原创 2015-05-14 00:11:12 · 374 阅读 · 0 评论 -
紫薯e5-3uva 10815
Problem B: Andy’s First DictionaryTime limit: 3 secondsAndy, 8, has a dream - he wants to produce his very own dictionary. This is not an easy task for him, as the number of words that he knows is, wel原创 2015-04-30 12:37:10 · 385 阅读 · 0 评论 -
5-3卡片游戏 uva10935
1、问题描述: Problem B: Throwing cards away I Given is an ordered deck of n cards numbered 1 to n with card 1 at the top and card n at the bottom. The following operation is performed as long as there a原创 2015-05-17 19:35:52 · 449 阅读 · 0 评论