NOI Contest Archive

Archive / 2022 / April 2022

Fair and Square

Medium · National Olympiad in Informatics Sri Lanka - April 2022

For a given number n, determine whether a square can be constructed using an n number of rectangles, each having a 2:1 aspect ratio.

Note: The rectangles can be of different sizes, but they must hold a 2:1 aspect ratio

Input Format

Output Format

Constraints

Sample Input 0

2
1
2

Sample Output 0

FALSE
TRUE