CULMYCA - EDITORIAL

Problem Link:
CONTEST
PRACTICE

Author- Virender Yadav

Tester- Vipin Khushu

Editorialist- Kushank Arora

Difficulty:
Simple

Prerequisites:
Math

Problem:
The aim is to find the rectangle of given perimeter but maximum area.

Explanation:
The problem is to find the rectangle of fixed perimeter but maximum area, which is although a square, since rectangle of maximum area is a square.
Thus out task reduced to find the length and breadth of the square of given perimeter, for a square, length is equal to breadth, and the perimeter is 4 times an edge. Hence to find the edge:
Edge = perimeter/4 in float
Thus the solution is to print the edge twice. The only thing under consideration should be that the calculation is to be done in float after taking input.

Solution Code

http://ideone.com/I4YsKr

//