Help Needed in this problem!

Revision en1, by Madara__Uchiha__, 2021-04-24 12:48:21

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

My submission:-https://pastebin.com/GGeGnBdT

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)