摘要: DescriptionOne curious child has a set ofNlittle bricks (5 ≤N≤ 500). From these bricks he builds different staircases. Staircase consists of steps of ... 阅读全文
posted @ 2015-05-08 21:50 Painting、时光 阅读(260) 评论(0) 推荐(0) 编辑
摘要: DescriptionThere live square people in a square country. Everything in this country is square also. Thus, the Square Parliament has passed a law about... 阅读全文
posted @ 2015-05-08 20:27 Painting、时光 阅读(140) 评论(0) 推荐(0) 编辑
摘要: Programmers working on a large project have just received a task to write exactlymlines of code. There arenprogrammers working on a project, thei-th o... 阅读全文
posted @ 2015-05-08 19:12 Painting、时光 阅读(148) 评论(0) 推荐(0) 编辑
摘要: A map of some object is a rectangular field consisting ofnrows andncolumns. Each cell is initially occupied by the sea but you can cover some some cel... 阅读全文
posted @ 2015-05-08 17:57 Painting、时光 阅读(131) 评论(0) 推荐(0) 编辑
摘要: You are given a stringq. A sequence ofkstringss1, s2, ..., skis calledbeautiful, if the concatenation of these strings is stringq(formally,s1 + s2 + .... 阅读全文
posted @ 2015-05-08 17:53 Painting、时光 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 来自杰哥的模板/* 高精度模版 含大数开平方*/#include #include #include #include #include #include using namespace std;const int numlen = 105; // 位数int max(int a, int b... 阅读全文
posted @ 2015-05-08 16:54 Painting、时光 阅读(167) 评论(0) 推荐(1) 编辑
摘要: DescriptionLet’s considerK-based numbers, containing exactlyNdigits. We define a number to be valid if itsK-based notation doesn’t contain two success... 阅读全文
posted @ 2015-05-08 16:41 Painting、时光 阅读(137) 评论(0) 推荐(0) 编辑