Another Contest 4 Problem 10 - Two Rectangles

View as PDF

Submit solution

Points: 1
Time limit: 5.0s
Memory limit: 256M

Problem type
Allowed languages

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

bool f(int n)

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


There are no comments at the moment.