1

Topic: Gold ingots of Geriona ' (and now for programmers)

Actually class problem the Author:  Date: 07.02 03:00 something to program. 1) to write the program which receives on an input sequence (number of lines and a dial-up for the line) dial-ups of ingots which we bag, for example so: 5 1, 2, 3, 4 1, 2, 3, 5 1, 2, 6 1, 3, 6 1, 4, 6 Then it produces or the answer of Ok, or unpacks swap bar_1 = 1... bar_11 = 11 On which results will be the same, as on trivial (when bar_i = i) 2) to Write the program which receives on an input number a range of ingots and limiting bag weight, and prints the shortest decision, or writes that it is not present...