Another Contest 4 Problem 11 - Three Rectangles

View as PDF

Submit solution

Points: 3
Time limit: 0.5s
Memory limit: 256M

Problem type
Allowed languages

In 2016, I proposed a problem about trying to take three rectangles and seeing if it was possible to combine them to form a square. It got accepted. Please implement this function instead.

bool f(int n)

You may assume 1 \le n \le 10^6.