ACM
文章平均质量分 83
Moon_yu
这个作者很懒,什么都没留下…
展开
-
UESTC 1711 Divide
DivideTime Limit: 2000 ms Memory Limit: 65535 kB Solved: 31 Tried: 764DescriptionAlice and Bob has found a island of treasure in byteland! They find N kinds of treasures on the island,原创 2013-08-20 22:25:49 · 506 阅读 · 0 评论 -
Codeforces Round #198(Div. 2)A. The Wall
A. The Walltime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputIahub and his friend Floyd have started painting原创 2013-10-24 17:44:19 · 511 阅读 · 0 评论 -
Codeforces Round #207 (Div. 2) C. Knight Tournament
A. Knight Tournamenttime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputHooray! Berl II, the king of Berland i原创 2013-10-17 22:07:51 · 616 阅读 · 0 评论 -
c++中string的用法
原文地址:c++中string的用法作者:在路上之所以抛弃char*的字符串而选用C++标准程序库中的string类,是因为他和前者比较起来,不必 担心内存是否足够、字符串长度等等,而且作为一个类出现,他集成的操作函数足以完成我们大多数情况下(甚至是100%)的需要。我们可以用 = 进行赋值操作,== 进行比较,+ 做串联(是不是很简单?)。我们尽可以把它看成是C++的基本数据类型转载 2013-10-28 19:32:43 · 474 阅读 · 0 评论 -
Codeforces Round #206 (Div. 2) C. Vasya and Robot
C. Vasya and Robottime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputVasya has n items lying in a line. The it原创 2013-10-22 21:51:59 · 708 阅读 · 0 评论 -
Codeforces Round #199(Div. 2) B. Xenia and Spies
B. Xenia and Spiestime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputXenia the vigorous detective faced n (n原创 2013-10-23 22:35:07 · 648 阅读 · 0 评论 -
Codeforces Round #203(Div. 2)B. Resort
B. Resorttime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputValera's finally decided to go on holiday! He pac原创 2013-10-29 21:56:55 · 518 阅读 · 0 评论 -
最长下降子序列
1054:合唱队形Time Limit:1000MS Memory Limit:65536KTotal Submit:95 Accepted:40 Page View:407[Submit] [Status] [Discuss]Font Size: Aa Aa AaDescription N位同学站成一排,音乐老师要请其中原创 2013-11-03 20:11:07 · 574 阅读 · 0 评论 -
KMP
学习KMP强烈推荐:严蔚敏老师的教学视频:http://www.56.com/u59/v_NjAwMzA0ODA.html时长一小时,但绝对受益匪浅。简单地总结一下我现在所掌握的KMP吧:首先,需要明确的是KMP是处理什么问题的:求一个串(为了好理解下面的代码,姑且认为这个串为T)在另一个串(S)中完全匹配后的id,也就是说S中子串T的起始位置。面对这个问题,我们很容易想到原创 2013-11-07 15:00:54 · 428 阅读 · 0 评论