Problem F on Tinkoff challenge final keeps giving me RE?

Правка en1, от farmersrice, 2017-05-14 04:20:13

So I have been trying to crack problem F on the Tinkoff challenge final round for like the whole day now, but I'm still getting runtime error on test 8. My solution is the exact same algorithm as the editorial, and almost the exact same code. I have been stumped for about 3 hours.

http://codeforces.com/contest/794/submission/27098860

If you could help, it would be greatly appreciated.

Теги please, help, thanks

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский farmersrice 2017-05-14 04:20:45 32
en1 Английский farmersrice 2017-05-14 04:20:13 451 Initial revision (published)