摘要: A. Substring and SubsequenceOne day Polycarpus got hold of two non-empty stringssandt, consisting of lowercase Latin letters. Polycarpus is quite good... 阅读全文
posted @ 2016-01-21 19:59 meekyan 阅读(755) 评论(0) 推荐(0) 编辑
摘要: Yet another Number SequenceLet’s define another number sequence, given by the following function:f(0) = af(1) = bf(n) = f(n − 1) + f(n − 2), n... 阅读全文
posted @ 2016-01-21 15:58 meekyan 阅读(295) 评论(0) 推荐(0) 编辑
摘要: B. Word CutLet's consider one interesting word game. In this game you should transform one word into another through special operations.Let's say we h... 阅读全文
posted @ 2016-01-21 14:50 meekyan 阅读(425) 评论(0) 推荐(0) 编辑
摘要: Rock-Paper-ScissorsNikephoros and Polycarpus play rock-paper-scissors. The loser gets pinched (not too severely!).Let us remind you the rules of this ... 阅读全文
posted @ 2016-01-21 00:12 meekyan 阅读(274) 评论(0) 推荐(1) 编辑