|시간 제한||메모리 제한||제출||정답||맞은 사람||정답 비율|
|1 초||512 MB||0||0||0||0.000%|
You are about to have a birthday and you would like to prepare a birthday cake that weighs anywhere between 1 and 1018 grams inclusive. You know that there will be A, B or C guests at the party. You would like to cut this cake into pieces such that:
You don’t want to spend too much time cutting the cake, so you would like to have at most 5,000 pieces. Let’s do it!
The only line of input contains the 3 numbers A, B, C, all positive integers not more than 1000.
On the first line, output one number K, the number of pieces. On each of the next K lines, output a description of each piece, consisting of 4 numbers, wi, ai, bi, ci, where wi is the weight of the piece in grams and ai, bi, ci are indices of the person who will get this piece if A, B, or C guests arrive, respectively. The indices should satisfy 1 ≤ ai ≤ A, 1 ≤ bi ≤ B, 1 ≤ ci ≤ C. The sum of all wis must be less than or equal to 1018.
1 2 3
4 2 1 1 1 1 1 1 2 1 1 2 2 2 1 2 3