Adding Squares Codechef October Long challenge Problem Code-
problem Statement-
There are different vertical lines on the plane, -th of which is defined by the equation () and different horizontal lines, -th of which is defined by the equation (). You must add one line of the form (, for every ) to the plane. What is the maximum possible number of squares with different areas you can obtain on the plane? (Squares can have other lines passing through them)
Input:
- First line will contain integers