Summing up the Areas
CodeChefOpen on judge ↗
Omrita and Ouhi are two best friends. They both are very fond of Geometry. One day, Omrita was alone in the class and started scribbling in blackboard. Ouhi walks in, and saw that there was a square of side N units drawn on the blackboard. Ouhi decided to step in and drew a straight line joining the midpoints of the opposite sides of the square (thus dividing it into two rectangles). Omrita, cho
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start