模拟: 文法分析
hash每个Key建图,对每个节点记录在原串的第几个位置开始输出。。。。
对每个询问沿图走就可以了。。。。
Hierarchical Notation
Time Limit: 2 Seconds Memory Limit: 131072 KB
In Marjar University, students in College of Co...
分类:
其他好文 时间:
2014-10-15 14:24:21
阅读次数:
184
乱搞:
1.数字的个数要比*的个数多一个,如果数字不足需要先把数字补满
2.最优的结构应该是数字都在左边,*都在右边
3.从左往右扫一遍,遇到数字+1,遇到*-1,如果当前值
Known Notation
Time Limit: 2 Seconds Memory Limit: 65536 KB
Do you know reverse Polish no...
分类:
其他好文 时间:
2014-10-15 11:30:10
阅读次数:
222
GroupingTime Limit:2 Seconds Memory Limit:65536 KBSuppose there areNpeople in ZJU, whose ages are unknown. We have some messages about them. Thei-th m...
分类:
其他好文 时间:
2014-10-15 05:38:19
阅读次数:
286
DominationTime Limit:8 Seconds Memory Limit:131072 KB Special JudgeEdward is the headmaster of Marjar University. He is enthusiastic about chess and o...
分类:
其他好文 时间:
2014-10-15 03:26:35
阅读次数:
349
水
Information Entropy
Time Limit: 2 Seconds Memory Limit: 65536 KB Special Judge
Information Theory is one of the most popular courses in Marjar University. In this course, th...
分类:
其他好文 时间:
2014-10-15 02:12:09
阅读次数:
470
D -DominationTime Limit:8000MSMemory Limit:131072KB64bit IO Format:%lld & %lluDescriptionEdward is the headmaster of Marjar University. He is enthusia...
分类:
其他好文 时间:
2014-10-15 01:47:29
阅读次数:
378
水
Average Score
Time Limit: 2 Seconds Memory Limit: 65536 KB
Bob is a freshman in Marjar University. He is clever and diligent. However, he is not good at math, especially in Mathemati...
分类:
其他好文 时间:
2014-10-15 00:07:49
阅读次数:
238
概率DP
Domination
Time Limit: 8 Seconds Memory Limit: 131072 KB Special Judge
Edward is the headmaster of Marjar University. He is enthusiastic about chess and often plays che...
分类:
其他好文 时间:
2014-10-14 23:37:59
阅读次数:
214
Average Score
Time Limit: 2 Seconds Memory Limit: 65536 KB
Bob is a freshman in Marjar University. He is clever and diligent. However, he is not good at math, especially in Mathematical A...
分类:
其他好文 时间:
2014-10-14 21:48:09
阅读次数:
147
题意:给出一个字符串,有两种操作: 1.插入一个数字 2.交换两个字符 问最少多少步可以把该字符串变为一个后缀表达式(操作符只有*)。解法:仔细观察,发现如果数字够的话根本不用插入,数字够的最低标准为'*'的个数+1,因为最优是 '12*3*..' 这种形式,所以先判断够不够,不够就补,然后从左往....
分类:
其他好文 时间:
2014-10-14 21:14:09
阅读次数:
158