Codeforces will be possibly unavailable in the period between Sep. 19, 19:00 (UTC) and Sep. 19, 21:00 (UTC) because of maintenance. ×

CP_Sucks's blog

By CP_Sucks, history, 19 months ago, In English

In a recent Div3 F : https://codeforces.com/contest/1311/problem/F

i made a submission with segtree of size 4*(number of distinct velocity) https://codeforces.com/contest/1311/submission/71877885

it got RE

Then i made segtree of size max it can go i.e 1e6 and it AC https://codeforces.com/contest/1311/submission/71878460

Can someone tell why 4*size is not enough in this case.

 
 
 
 
  • Vote: I like it
  • +6
  • Vote: I do not like it

»
19 months ago, # |
  Vote: I like it +13 Vote: I do not like it

Really Sorry to Post this. Just a stupid bug by me. Solved it. Ignore the post