|시간 제한||메모리 제한||제출||정답||맞은 사람||정답 비율|
|2 초||512 MB||18||4||4||25.000%|
There are $N$ metal bars. The weight of $i$-th metal bar is $2i - 1$.
Your task is to distribute those metal bars into two or more groups such that the sum of weights of metal bars in each group will be the same, or determine that it is impossible. Note that each metal bar must go to exactly one group, and that it is not allowed to cut the metal bars.
The input contains one integer $N$ ($2 \le N \le 10^5$).
If there is no way to distribute the metal bars into two or more equally weighted groups, print one line containing the integer $-1$.
Otherwise, on the first line, print the number of groups $G$ ($2 \le G \le N$). Then print $G$ lines, one for each group. The $i$-th of these lines must start with the the integer $K_i$, the number of metal bars in the $i$-th group. Then print $K_i$ integers: the weights of the metal bars in the group. Each metal bar must be assigned to exactly one group, and the sums of weights of the metal bars in all groups must be the same.
If there is more than one solution, print any one of them.
2 2 1 7 2 3 5