Problem B
Assignment Problem (Easy)
Note that this is an easier version of the problem assignmenthard.
You, the Robot King, have to coordinate your robot employees
More formally, suppose
Input
In the first line there will be an integer
Output
First, there should be a line containing the total cost of
an optimal assignment. Then, there should be one line
representing an optimal assignment. The
Sample Input 1 | Sample Output 1 |
---|---|
4 2 1 2 2 1 2 2 2 2 2 1 2 2 2 2 1 |
4 2 1 3 4 |
Sample Input 2 | Sample Output 2 |
---|---|
3 5 5 6 1 4 2 1 9 5 |
8 2 3 1 |