Help Needed in this problem!

Revision en2, by Madara__Uchiha__, 2021-04-24 12:54:36

Problem:- https://codeforces.net/edu/course/2/lesson/4/1/practice/contest/273169/problem/C

My submission:-https://pastebin.com/GGeGnBdT or https://ideone.com/VNbvP0

It is giving WA on test case 14 again and again.

Plz can anyone tell where is bug in my code.Any help would be appreciated.

Tags #data structure, #segment-trees

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English Madara__Uchiha__ 2021-04-24 12:54:36 45
en1 English Madara__Uchiha__ 2021-04-24 12:48:21 296 Initial revision (published)