Number Of Rectangles
CodeChefOpen on judge ↗
Iyer Is studying in his high school . He has been given the task , given an Integer N ,find the total number of rectangles that can be formed with sides a, b, c, d such that , a + b + c + d = n. Since Iyer does not know about real numbers, his teacher told him to do the assignment with Integers only . (a, b, c, d, n - all are integers) Can u help Iyer to get him good marks in his high school .You
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