Known Notation
Time Limit: 2 Seconds Memory Limit: 65536 KB
Do you know reverse Polish notation (RPN)? It is a known notation in the area of mathematics and computer science. It is also k...
分类:
其他好文 时间:
2014-10-16 03:40:51
阅读次数:
191
回来之后就被没写的作业和入党的事情搞得一团糟(出门在外还是带两本书比较好),但还是抽空在下个赛区开赛之前把这篇参赛总结赶出来了。
据一开始的分析牡丹江赛区最强,我们也是紧张的不行,一来一回高昂的路费,揭幕战的压力和比较少的准备时间更让我们压力山大。没办法,只有玩命练,偏偏国庆七场ASC成绩惨淡,8号的gym我还手贱拉了一场爆零专场,队友之间的紧张情绪很快传染,直到走之前一天晚上,我们的状态都不是...
分类:
其他好文 时间:
2014-10-16 02:21:51
阅读次数:
220
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, there is an...
分类:
其他好文 时间:
2014-10-16 01:01:15
阅读次数:
334
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-16 00:48:01
阅读次数:
428
DescriptionDo you know reverse Polish notation (RPN)? It is a known notation in the area of mathematics and computer science. It is also known as post...
分类:
其他好文 时间:
2014-10-16 00:15:21
阅读次数:
587
Known Notation
Time Limit: 2 Seconds Memory Limit: 131072 KB
Do you know reverse Polish notation (RPN)? It is a known notation in the area of mathematics and computer science. It is also kn...
分类:
其他好文 时间:
2014-10-15 00:11:49
阅读次数:
297
Known NotationTime Limit: 2 Seconds Memory Limit: 65536 KBDo you know reverse Polish notation (RPN)? It is a known notation in the area of mathematic....
分类:
其他好文 时间:
2014-10-14 23:04:39
阅读次数:
220
2014牡丹江现场赛水题
给出波兰式,判断其是否合法,如果不合法有两种操作:
1:任意位置加一个数字或者操作符
2:任意两个位置的元素对调
贪心模拟即可
先判断数字数是否大于操作符数,若不大于 ans+=sum2-sum1+1;新加入的数字全部放到左端。
然后从左到右遍历一遍,存储到当前位置为止,数字数和sum1,和操作数和sum2
若sum2>=1sum1,优先与队...
分类:
其他好文 时间:
2014-10-14 16:58:49
阅读次数:
170