Hello! Please tell me why my solution was wrong.

Правка en1, от KomorGiaoGiao, 2024-10-02 15:44:52

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 or some bugs in my codes, please pointed it out, thank you!!!!!

Problem_Link

My_Submission

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский KomorGiaoGiao 2024-10-02 15:46:07 16 Tiny change: 'cal wrong or some b' -> 'cal wrong int my solution or some b'
en1 Английский KomorGiaoGiao 2024-10-02 15:44:52 554 Initial revision (published)