摘要:
DescriptionOne curious child has a set ofNlittle bricks (5 ≤N≤ 500). From these bricks he builds different staircases. Staircase consists of steps of ... 阅读全文
摘要:
DescriptionThere live square people in a square country. Everything in this country is square also. Thus, the Square Parliament has passed a law about... 阅读全文
摘要:
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... 阅读全文
摘要:
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... 阅读全文
摘要:
You are given a stringq. A sequence ofkstringss1, s2, ..., skis calledbeautiful, if the concatenation of these strings is stringq(formally,s1 + s2 + .... 阅读全文
摘要:
来自杰哥的模板/* 高精度模版 含大数开平方*/#include #include #include #include #include #include using namespace std;const int numlen = 105; // 位数int max(int a, int b... 阅读全文
摘要:
DescriptionLet’s considerK-based numbers, containing exactlyNdigits. We define a number to be valid if itsK-based notation doesn’t contain two success... 阅读全文