Description Input Output如果有可行解, 输出最小代价,否则输出NIE. Sample Input5 1 1 2 3 1 1 5 1 3 2 5 5 4 1 5 10 3 3 3 1 Sample Output9 HintSource