Garage
CodeChefOpen on judge ↗
Hrishikesh plans to build a garage. He wants the garage to consist of a square and a right triangle that are arranged like the following illustration. Triangle is there with height a and hypotenuse b and below than square is there An integer x is suitable if and only if we can construct a garage with assigning positive integer values for the lengths a and b (a<b) so that the area of the
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