confucius_orz_991's blog

By confucius_orz_991, 4 weeks ago, In English,

Hi!

Can someone please explain the solution to below problem from Codechef COOK35 :)

PROBLEM

 
 
 
 
  • Vote: I like it  
  • -2
  • Vote: I do not like it  

»
4 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

Can someone please help!!!!!

»
4 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

It uses Segment Tree.