
经典第五章
夜幕下的ACM之路
通往成功的路注定是孤独的,我不会放弃!!!!
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
经典第五章例5.1 UVa 10474 Where is the Marble?(排序与检索)
http://7xjob4.com1.z0.glb.clouddn.com/53e5c6d66221525b0c18113b513fc3fb很简单的排序和检索。 下面是AC代码:#include<cstdio>#include<algorithm>using namespace std;const int maxn=10000;int main(){ int n,q,x,a[maxn原创 2016-08-13 14:30:35 · 457 阅读 · 0 评论 -
经典第五章例5.2 UVA 101 The Blocks Problem(vector的基础应用)
Background Many areas of Computer Science use simple, abstract domains for both analytical and empirical studies. For example, an early AI study of planning and robotics (STRIPS) used a block world i原创 2016-08-13 15:37:08 · 431 阅读 · 0 评论 -
经典第五章 例 5-3 UVa 10815 Andy's First Dictionity (set的用法)
题目:http://7xjob4.com1.z0.glb.clouddn.com/c0d75d1818b79aa14b802f9660a055f7本题是set的简单用法。 下面是AC代码:#include<cstdio>#include<cstring>#include<string>#include<set>#include<sstream>#include<iostream>#in原创 2016-08-13 16:15:36 · 682 阅读 · 0 评论 -
经典第五章 例 5-4 UVA 156 Ananagrams(反片语)【map的应用】
http://acm.hust.edu.cn/vjudge/contest/128220#problem/D 中文题意:输入一些单词,找出满足如下条件的单词:该单词不能通过字母重排,得到文本中的另一个单词。在判断是否满足条件时,字母不分大小写,但在输出是应保留输入中的大小写,按字典序进行排序(所有大写字母在所有小写字母的前面)。下面是AC代码:#include<iostream>#include原创 2016-08-15 14:23:33 · 881 阅读 · 0 评论 -
经典第五章 习题 5-3 UVA 10935 Throwing cards away I(队列的简单应用)
题目:http://7xjob4.com1.z0.glb.clouddn.com/bc8f4a27cb57cafb184320d2484b0cda就是简单的队列模拟。 下面是AC代码:#include<cstdio>#include<cstring>#include<queue>#include<algorithm>using namespace std;int a[50];int ma原创 2016-08-16 19:42:46 · 448 阅读 · 0 评论 -
经典第五章 习题 5-4 UVA 10763 Foreign Ex(思维题目)
题目:http://7xjob4.com1.z0.glb.clouddn.com/4014fbee7e223cef72af57b4d654578c很简单的题目,只需分为两个集合,然后判断两个集合里的元素是不是完全相等就OK了。 下面是AC代码:#include<iostream>#include<cstdio>#include<cstring>#include<algorithm>#inc原创 2016-08-16 20:35:40 · 457 阅读 · 0 评论 -
经典第五章 例 5-6 UVA 540 Team Queue(队列的简单应用)【queue】
题目链接:https://odzkskevi.qnssl.com/0a3315a2fe9c8c8a8d0f9f9a53ac18fa【题目分析】用队列来模拟一个多人排队的过程。#include<cstdio>#include<cstring>#include<algorithm>#include<queue>#include<map>using namespace std;const int原创 2016-10-02 22:08:27 · 382 阅读 · 0 评论