Тура#11356

Тура (Editorial)

Subtask 1. For , there always is a solution. It's enough to take and q = r = (n, n-1, \ldots, 1).

Subtask 2. Let's notice the simple property:

Let be any sequences of length co