Getting WA in CodeCraft'15 Problem H

Правка en1, от VastoLorde95, 2015-08-04 15:43:44

Hi,

Have been trying this problem for 4 days now. My solution is the same as that provided in the editorial but I just keep getting WA :/

I have checked my solution with thousands of small test cases and a python brute force solution (with n upto 100) and it has matched all of them.

Here is my C++ code

This is my brute force python solution

And this is the test case generator

Kindly help me. Thank you! :)

editorial

Теги wa, fenwick tree, two pointers

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en3 Английский VastoLorde95 2015-08-04 16:42:45 13 Tiny change: 'nk you! :)\n\neditorial' -
en2 Английский VastoLorde95 2015-08-04 15:48:14 58
en1 Английский VastoLorde95 2015-08-04 15:43:44 669 Initial revision (published)