What is the mistake?

Правка en1, от beowulf, 2017-09-25 02:33:29

The 30692159 gives an error on test 9; if anyone can point out the mistake in the code i'd grateful.

Working:

I first formed an array that stores the maximum value of the input numbers upto the current index.

I then formed an array that stores the maximum value of p*ai+q*aj for a particular j.

Теги error, wrong answer

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский beowulf 2017-09-25 02:33:29 345 Initial revision (published)