Help with "C. Find B"

Revision en1, by GrimReaper27, 2024-02-23 22:22:09

Hi guys!

Problem Link : 1923C - Find B Submission : 248005674

My approach :

I have tried to calculate the minimum possible sum of subarray for every query range and compared it with actual sum of the subarray using prefix sum , My code passes sample test case but I'm unable to figure out why it is showing wrong answer for hidden testcases . Can anyone help me with this ?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English GrimReaper27 2024-02-23 22:22:09 439 Initial revision (published)