HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Forums > Discussion of problems > topic:


Problem "50419 - The longest bitonic sequence"

There is a contest!

В настоящий момент идёт турнир. Некоторая информация и функции сервера недоступны до его окончания.

imesecanJuly.20.2015 at 09:37:19 AM
0--- Test 1 ---
14
4 2 1 5 7 3 1 4 7 8 2 1 3 2

--- Pattern ---
6

aruci16Dec.30.2016 at 02:35:00 PM
1
(0: imesecan)
The longest bitonic sequence is 1 3 4 7 8 2 1 so the output should be 7

imesecanDec.30.2016 at 03:03:34 PM
2
(1: aruci16)
The result of your sequence is 7. If you are referring to test 1, the answer is 6 (1 4 7 8 2 1). The question asks for sequential bitonic sequence, if you mean sub-sequential (where the numbers do not have to be in an adjacent manner, there may be other numbers between the numbers), then the answer is 7 (1 3 4 7 8 2 1 ).


www.contester.ru