Hello! Please tell me why my solution was wrong.

Revision en2, by KomorGiaoGiao, 2024-10-02 15:46:07

This is a problem from Codeforces Round 975. I tried to solve it in the round time and expected to get higher rating. A solution of binary search to this problem jumped out in my mind, and I coded it quickly, but I got WA again and again. Please help me, maybe there are some mathematical wrong int my solution or some bugs in my codes, please pointed it out, thank you!!!!!

Problem_Link

My_Submission

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English KomorGiaoGiao 2024-10-02 15:46:07 16 Tiny change: 'cal wrong or some b' -> 'cal wrong int my solution or some b'
en1 English KomorGiaoGiao 2024-10-02 15:44:52 554 Initial revision (published)