- 博客(5)
- 收藏
- 关注
原创 栈对于表达式求值的特殊作用&&UVa442 Matrix Chain Multiplication(矩阵链乘)的理解与解析
栈对于表达式求值的特殊作用,简单的表达式解析可以借助栈来完成。 Matrix Chain Multiplication Suppose you have to evaluate an expression like A*B*C*D*E where A,B,C,D and E are matrices. Since matrix multiplication is associative, the order in which multiplications are performed is a
2015-10-29 11:50:30 1193
原创 stack&&UVa514 Rails (铁轨)的理解与解析
There is a famous railway station in PopPush City. Country there is incredibly hilly. The station was built in last century. Unfortunately, funds were extremely limited that time. It was possible to e
2015-10-28 13:02:10 1983
原创 deque双端队列&&UVa210 Concurrency Simulator(并行程序模拟)的理解与解析
deque双端队列&&Concurrency Simulator(并行程序模拟)的理解与解析deque 双端队列支持快速随机访问。在 头尾位置 插入/删除速度很快。deque是一种更为复杂的数据结构。与string和vector类似,deque支持快速的随机访问。与string和vector一样,在deque的中间位置添加和删除元素的代价(可能)很高。但是,在deque的两端添加或
2015-10-27 16:35:03 2279
原创 UVa12100 Printer Queue (打印队列)
12100 Printer Queue Input One line with a positive integer: the number of test cases(at most 100). Then for each test case: • One line with two integers n and m, where n is the n
2015-10-17 00:42:20 4382
原创 UVa253 Cube painting(骰子涂色)(27行,比较简洁的样子)
算法竞赛入门宝典(第2版)习题4-4骰子涂色(Cube painting,UVa253) Cube painting #include <iostream>#include <string>using namespace std;int main(){ string str,str11,str12,str13,str21,str22,str23; while(cin>>str){ str11=str[0]+str[5];
2015-10-03 00:27:52 5389 10
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人