https://onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=565
does it allow multiple solution?
like 43 2 is a correct answer for the fifth test case?
I am getting wrong answer and the problem description is not clearing it.
Don't solve UVA problems
Yes, it allows multiple solution.like 43 2 is also a correct answer for fifth test case. here number of tracks on the CD does not exceed 20. so we can check all possible subset of tracks , and peck best one.