587C Duff in the Army: Subtle Error
Разница между en1 и en2, 118 символ(ов) изменены
Hello, ↵

I have spent a good amount of time trying to debug [587C](http://mirror.codeforces.com/contest/587/problem/C). However, I am getting [WA Test 30](http://mirror.codeforces.com/contest/587/submission/22723086). ↵

There seems to be something wrong with merging (not necessarily the method itself), as in my answer I end up outputting a duplicate of each number in the second line of the Output on test 30↵

10 1 1 4 4 5 5 6 6 8 8 ↵

However, I believe I designed my code so that the code should not be merging overlapping vectors. If someone could be so kind as to help me pinpoint the error, I would be very thankful. ↵

EDIT: User [user:b524,2016-12-07] helped me find the error; it was just because my LOG value was not big enough :(↵

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский miniluigi 2016-12-07 05:36:53 118
en1 Английский miniluigi 2016-12-07 04:23:26 656 Initial revision (published)