Problem Setter & Dataset: Md. Albin Hossain
Reviewer: Saiful Islam Ramim
Alternate Writer: Siam Ahmed
Problem Category: Geometry
Contest Solve Count: (Expected) (To be updated after the contest).
Problem Analysis:
Given . To find the area of the square we need to find a side . Then we can find the area of .
Sides of square are equal, therefore and are midpoints of , and respectively. So and .
Consider the triangle . is as is a square by definition.
We can get by Pythagorean theorem,
[Multiply both side by 2]
Area of square.
Source Code:
#include<stdio.h>
int main() {
int pq;
scanf("%d", &pq);
int area = 2 * pq * pq;
printf("%d\n", area);
return 0;
}