求值方法:对于一个前缀表达式的求值而言,首先要从右至左扫描表达式,从右边第一个字符开始判断,如果当前字符是数字则一直到数字串的末尾再记录下来,如果是运算符,则将右边离得最近的两个“数字串”作相应的运算,以此作为一个新的“数字串”并记录下来。一直扫描到表达式的最左端时,最后运算的值也就是表达式的值。例...
分类:
其他好文 时间:
2015-03-20 06:45:55
阅读次数:
112
In the Java community there‘s been a rush of lightweight containers that help to assemble components from different projects into a cohesive application. Underlying these containers is a common pat...
分类:
其他好文 时间:
2015-03-17 09:05:44
阅读次数:
281
1093. Count PAT's (25)
时间限制
120 ms
内存限制
65536 kB
代码长度限制
16000 B
判题程序
Standard
作者
CAO, Peng
The string APPAPT contains two PAT's as substrings. The first one is formed by the 2nd, the 4th,...
分类:
其他好文 时间:
2015-03-15 09:37:43
阅读次数:
1024
The stringAPPAPTcontains twoPAT's as substrings. The first one is formed by the 2nd, the 4th, and the 6th characters, and the second one is formed by ...
分类:
其他好文 时间:
2015-03-14 23:04:31
阅读次数:
405
1001. A+B Format (20)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard 作者CHEN, YueCalculate a + b and output the sum in standard format -- that is, the ...
分类:
其他好文 时间:
2015-03-13 18:36:46
阅读次数:
110
1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 using namespace std; 8 int n; //n本书 9 //标题、作者、关键字、出版社、出版年份与ID的映射10 map> mp...
分类:
其他好文 时间:
2015-03-12 00:47:37
阅读次数:
120
#include#includechar str[30]; //输入的数字int tmp[30]; //*2后逆序的数字int cntstr[10]; //输入数字0-9的个数int tmpI=0,jin=0; //...
分类:
其他好文 时间:
2015-03-11 18:46:58
阅读次数:
114
#include#includeusing namespace std;typedef long long ll; //【skill】重命名struct num{ ll zi,mu; //分子分母};ll gcd(ll a,ll b) //求最大公约数{ return ...
分类:
其他好文 时间:
2015-03-11 16:33:00
阅读次数:
145
It is vitally important to have all the cities connected by highways in a war. If a city is occupied by the enemy, all the highways from/toward that city are closed. We must know immediately if we nee...
分类:
其他好文 时间:
2015-03-11 14:57:06
阅读次数:
154
一 从TS流开始 数字电视机顶盒接收到的是一段段的码流,我们称之为TS(Transport Stream,传输流),每个TS流都携带一些信息,如Video、Audio以及我们需要学习的PAT、PMT等信息。因此,我们首先需要了解TS流是什么,以及TS流是怎样形成、有着怎样的结构。(一) TS流、PS...
分类:
其他好文 时间:
2015-03-11 12:36:20
阅读次数:
309