Need help with CodeChef Starters 168A Xoperations

Revision en1, by Neev4321, 2025-01-10 09:12:59

In this problem, my solution (code starts at line 71) is getting Wrong Answer.
I read the editorial.
My solution is the same as the editorial but without binary search.
I wrote a stress test which compared my solution with the editorialists code.
Using large T for different values of N, I could find no case where my answer was different.

stress test code

I cannot find any mistake in my logic or implementation.
Any help would be appreciated.

Tags help, codechef

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Neev4321 2025-01-10 09:12:59 2984 Initial revision (published)