Spoj: Getting WA in http://www.spoj.com/problems/WINDVANE/. Please help!

Revision en1, by elita15, 2016-05-25 11:51:05

I used 2D BIT (Range Updates, Point queries) to solve this problem . Here is my solution which results in WA. Can someone please tell me why is this solution failing?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English elita15 2016-05-25 11:51:05 269 Initial revision (published)