摘要: Description描述Inspired by a "Little Bishops" problem, Petya now wants to solve problem for rooks.A rook is a piece used in the game of chess which is p... 阅读全文
posted @ 2015-03-07 14:26 Ivy_End 阅读(280) 评论(0) 推荐(0) 编辑
摘要: Description描述You task is to find minimal natural number N, so that N! contains exactly Q zeroes on the trail in decimal notation. As you know N! = 1*2... 阅读全文
posted @ 2015-03-07 13:18 Ivy_End 阅读(243) 评论(0) 推荐(0) 编辑
摘要: Description描述On a circle border there are 2k different points A1, A2, ..., A2k, located contiguously. These points connect k chords so that each of po... 阅读全文
posted @ 2015-03-07 11:04 Ivy_End 阅读(190) 评论(0) 推荐(0) 编辑
摘要: Description描述Famous Berland ACM-ICPC team Anisovka consists of three programmers: Andrew, Michael and Ilya. A long time ago, during the first few mont... 阅读全文
posted @ 2015-03-07 09:48 Ivy_End 阅读(170) 评论(0) 推荐(0) 编辑
摘要: Description描述There are two boxes. There are A balls in the first box, and B balls in the second box (0 using namespace std;const int MAX = 32;int main... 阅读全文
posted @ 2015-03-07 09:28 Ivy_End 阅读(199) 评论(0) 推荐(0) 编辑