#P1392. 取数
取数
Description
In an -row, -column array of numbers, you must pick one number from each row (a total of numbers) and add them to get a sum. For the given array, please output the smallest picking methods by sum.
Input Format
The first line contains three numbers . Lines , each line contains positive integers.
Output Format
One line containing numbers, representing the smallest sums when picking one number from each row.
3 3 2
1 2 3
6 3 5
4 1 2
5 6
Hint
For of the testdata, . For of the testdata, , . It is guaranteed that the final answer does not exceed .
Translated by ChatGPT 5
京公网安备 11011102002149号