Codeforces and Polygon may be unavailable from December 6, 19:00 (UTC) to December 6, 21:00 (UTC) due to technical maintenance. ×

Help needed in Packing Rectangles (Binary Search)

Revision en2, by coder__12345, 2024-02-04 00:12:50

Problem Link: https://mirror.codeforces.com/edu/course/2/lesson/6/2/practice/contest/283932/problem/A

Accepted Code
Not Accepted Code

The only change in the two code is the value being assigned to l, when i normally implement binary search i use it like in the not accepted one but why in this problem its giving wrong answer?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English coder__12345 2024-02-04 00:12:50 95
en1 English coder__12345 2024-02-04 00:07:51 1141 Initial revision (published)