#P7567. 「MCOI-05」魔仙
「MCOI-05」魔仙
Background
You are the astrology magic fairy in the Magic Fairy Castle.
Problem Description
The Magic Fairy Queen’s gem was stolen by the ancient "Gunalab Dark God". The "Gunalab Dark God" is hiding in any one of the domes in the Magic Fairy Castle. These domes are numbered from to . The -th dome can be assigned a magic power value , and must be an integer.
If the sum of the magic power values of all domes is and their product is , then we say that in this situation, the "Gunalab Dark God" can be found easily.
The Magic Fairy Queen asks the astrology magic fairy to find an assignment of magic power values so that the "Gunalab Dark God" can be found easily.
Input Format
This problem has multiple test cases.
The first line contains a positive integer , representing the number of test cases.
The next lines each contain one integer .
Output Format
Output lines. The -th line should contain the answer for the -th test case.
If there is a solution, output one line with integers representing a constructed sequence of magic power values. Otherwise, output w33zAKIOI.
This problem uses Special Judge, so you only need to output one valid sequence.
2
4
114513
1 -1 2 -2
w33zAKIOI
1
1
w33zAKIOI
Hint
Sample 1 Explanation
, .
Constraints
This problem uses bundled tests.
- Subtask 1 (5 pts):
- Subtask 2 (20 pts):
- Subtask 3 (75 pts): no special constraints.
For of the testdata, , , .
This problem uses Special Judge, so you only need to output one valid sequence.
Translated by ChatGPT 5