Скоро Codeforces Round 1133 (Div. 1, Div. 2)! Регистрация здесь. ×

Блог пользователя I_lOVE_ROMAN

Автор I_lOVE_ROMAN, история, 5 лет назад, По-английски

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.

  • Проголосовать: нравится
  • -2
  • Проголосовать: не нравится

»
5 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Don't solve UVA problems

»
5 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

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.