Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Adding Squares Codechef October Long challenge Problem Code

 Adding Squares  Codechef October Long challenge Problem Code-

problem Statement-

There are N different vertical lines on the plane, i-th of which is defined by the equation x=ai (0aiW) and M different horizontal lines, i-th of which is defined by the equation y=bi (0biH). You must add one line of the form y=k (0kHkbi for every 1iM) 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 4 integers 


This post first appeared on Technical Keeda, please read the originial post: here

Share the post

Adding Squares Codechef October Long challenge Problem Code

×

Subscribe to Technical Keeda

Get updates delivered right to your inbox!

Thank you for your subscription

×