#Lutece1040. Great Inversion
Great Inversion
Migrated from Lutece 1040 Great Inversion
All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.
Description
There is an array with length of . is the element in . Please find a possible situation of so that the inversion number is exactly .
Input
Only three integers indicating , , .
Output
numbers in a line indicating if there is a solution, If there are multiple solutions, you may print any of them. Otherwise output -1
instead.
Samples
5 3 2
1 1 2 1 1
Note
Resources
The 13th UESTC Programming Contest Preliminary