数据结构
crella___
当你还不能写出自己满意的程序时,你就不要去睡觉。
展开
-
"Accordian" Patience UVA - 127 (数据结构)
Problem 问题 You are to simulate the playing of games of “Accordian” patience, the rules for which are as follows: 模拟玩一个“手风琴”纸牌游戏,规则如下:Deal cards one by one in a row from left to right, not overlappin原创 2017-04-16 16:14:21 · 660 阅读 · 0 评论 -
《算法经典》——第六章 数据结构
一、STL deque 双端队列 stack 栈的应用——表达式处理如UVa442,多重括号具有的就近原则 (A(BC)) 遇到字母时入栈,遇到右括号时出栈并计算,然后结果入栈二、构造数据结构 链表 可以完成不易用数组实现的移动、删除、添加功能 UVa11988 题目大意:你在输入文章的时候,键盘上的Home键和End键出了问题,会不定时的按下。 给你一段按键的文本,其中’[‘表示原创 2017-04-17 13:34:52 · 293 阅读 · 0 评论 -
UVA140
#include<cstdio> #include<vector> #include<cstring> #include<map> //#include<sstream> using namespace std; const int maxn = 9 + 1, INF = 1000; vector<int> G[maxn]; map<char, int> ID; map<int, char> ant原创 2017-04-22 12:22:18 · 243 阅读 · 0 评论