摘要:
There is a pond with a rectangular shape. The pond is divided into a grid with H rows and W columns of squares. We will denote the square at the i-th 阅读全文
摘要:
Let N be a positive integer. There is a numerical sequence of length 3N, a=(a1,a2,…,a3N). Snuke is constructing a new sequence of length 2N, a', by re 阅读全文
摘要:
There is a bar of chocolate with a height of H blocks and a width of W blocks. Snuke is dividing this bar into exactly three pieces. He can only cut t 阅读全文
摘要:
You are given an integer sequence of length N, a= {a1,a2,…,aN}, and an integer K. a has N(N+1)⁄2 non-empty contiguous subsequences, {al,al+1,…,ar} (1≤ 阅读全文
摘要:
You are taking a computer-based examination. The examination consists of N questions, and the score allocated to the i-th question is si. Your answer 阅读全文
摘要:
There are N towns on a plane. The i-th town is located at the coordinates (xi,yi). There may be more than one town at the same coordinates. You can bu 阅读全文