Diferente pentru problema/secretsanta intre reviziile #4 si #5

Nu exista diferente intre titluri.

Diferente intre continut:

h2. Restricţii
* $1 ≤ Q ≤ 10^5$
* $2 ≤ N ≤ 10^5$
* $1 ≤ Q ≤ 10^5^$
* $2 ≤ N ≤ 10^5^$
* For tests worth $10$ points, $2 ≤ N ≤ 20$.
* For tests worth another $50$ points, the sum of all $N$ in the input doesn't exceed $2*10^5$.
* For tests worth another $50$ points, the sum of all $N$ in the input doesn't exceed $200.000$.
h2. Exemplu

Nu exista diferente intre securitate.

Topicul de forum nu a fost schimbat.