摘要: 度熊面前有一个全是由1构成的字符串,被称为全1序列。你可以合并任意相邻的两个1,从而形成一个新的序列。对于给定的一个全1序列,请计算根据以上方法,可以构成多少种不同的序列。Input这里包括多组测试数据,每组测试数据包含一个正整数NN,代表全1序列的长度。 1≤N≤2... 阅读全文
posted @ 2019-02-17 21:38 black_hole6 阅读(116) 评论(0) 推荐(0)
摘要: A permutation p is an ordered group of numbers p1, p2, ..., pn, consisting of ndistinct positive integers, each is no more than ... 阅读全文
posted @ 2019-02-17 19:43 black_hole6 阅读(282) 评论(0) 推荐(0)
摘要: Sasha likes programming. Once, during a very long contest, Sasha decided that he was a bit tired and needed to relax. So he did. But s... 阅读全文
posted @ 2019-02-17 14:47 black_hole6 阅读(336) 评论(0) 推荐(0)