I_lOVE_ROMAN's blog

By I_lOVE_ROMAN, history, 3 years ago, In English

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.

  • Vote: I like it
  • -2
  • Vote: I do not like it

| Write comment?
»
3 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Don't solve UVA problems

»
3 years ago, # |
  Vote: I like it 0 Vote: I do not like it

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.