Diferente pentru problema/tygyn intre reviziile #6 si #5
Nu exista diferente intre titluri.
Diferente intre continut:
h2. Constraints * $1 ≤ N < M ≤ 1.000.000$
* For $10$ points, $M ≤ 20$
* For $40$ points, $N ≤ 1.000$ * Note that the scoring is not the same as the one in the official onsite contest
