
线性表
文章平均质量分 83
ultimater
桃李争辉飒爽英姿斗艳,成功失败总是欢乐伤悲!
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
HDU 1022 火车进出站问题
Problem I Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 9733 Accepted Submission(s): 3539 Problem Description As the new term原创 2012-04-25 11:19:49 · 9583 阅读 · 0 评论 -
uva-673 Parentheses Balance
Description You are given a string consisting of parentheses () and []. A string of this type is said to be correct: (a)if it is the empty string(b)if A and B are correct, AB is corre原创 2013-07-04 15:26:41 · 1583 阅读 · 0 评论 -
uva-10050 Hartals
A social research organization has determined a simple set of parameters to simulate the behavior of the political parties of our country. One of the parameters is a positive integer h (called the原创 2013-07-04 15:58:08 · 1103 阅读 · 0 评论 -
uva-11111 Generalized Matrioshkas
Vladimir worked for years making matrioshkas, those nesting dolls that certainly represent truly Russian craft. A matrioshka is a doll that may be opened in two halves, so that one finds another doll原创 2013-07-04 15:44:47 · 1107 阅读 · 0 评论 -
uva-442 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 arbitrary. H原创 2013-07-04 15:36:42 · 1670 阅读 · 0 评论 -
uva-11234 Expressions
Arithmetic expressions are usually written with the operators in between the two operands (which is called infix notation). For example,(x+y)*(z-w) is an arithmetic expression in infix notation. Howev原创 2013-07-04 15:54:46 · 1027 阅读 · 0 评论 -
UVA 442 Matrix Chain Multiplication
Description 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原创 2012-09-24 20:54:00 · 1032 阅读 · 0 评论 -
UVA 11234 - Expressions
Description 2007/2008 ACM International Collegiate Programming Contest University of Ulm Local Contest Problem E: Expressions Arithmetic expressions are usually written with the operato原创 2012-09-24 23:19:20 · 1457 阅读 · 0 评论 -
UVA 127 "Accordian" Patience
Description ``Accordian'' Patience 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 r原创 2012-09-22 18:09:30 · 1764 阅读 · 0 评论 -
UVA 673 Parentheses Balance
Description Parentheses Balance You are given a string consisting of parentheses () and []. A string of this type is said to be correct: (a)if it is the empty string(b)原创 2012-09-14 23:25:49 · 2388 阅读 · 1 评论 -
UVA 540 Team Queue
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 time the qu原创 2012-09-26 20:47:26 · 1009 阅读 · 0 评论 -
表达示求值
#include #include #include #include using namespace std; int isopra(char ch);//判断是不是运算符。 int priority(char ch);//判断优先权。 void trans(char *in,char *out);//将字符串转换成后辍学表达式。 int compute(char *chb);//计算 int原创 2012-04-25 15:55:26 · 682 阅读 · 0 评论 -
uva-133 The Dole Queue
In a serious attempt to downsize (reduce) the dole queue, The New National Green Labour Rhinoceros Party has decided on the following strategy. Every day all dole applicants will be placed in a large原创 2013-07-04 15:19:14 · 3239 阅读 · 0 评论