Getting WA in #631 Div-2 Problem B , Please Help

Revision en1, by Ferrarixxx, 2020-05-07 22:32:11

Question Link: https://codeforces.me/contest/1330/problem/B

My Solution Link: https://codeforces.me/contest/1330/submission/79321519

Applied Simple binary search and 2 pointer method to find ans and am getting right ans for the sample test cases I dont know where the flaw is in my code that it gives Wrong output for the extreme corner test case -> Test Case 3

I have commented my code , its very easy to understand ,

Please find my flaw in my code or approach.

Thanks in Advance.

Tags help, help me please, #general, #problem b

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Ferrarixxx 2020-05-07 22:32:11 547 Initial revision (published)