100 atcoder#ABC227B. [ABC227B] KEYENCE building
[ABC227B] KEYENCE building
Score : points
Problem Statement
There are people numbered to .
Person guessed the building area of KEYENCE headquarters building to be square meters.
The shape of KEYENCE headquarters building is shown below, where and are some positive integers. That is, the building area of the building can be represented as .
Based on just this information, how many of the people are guaranteed to be wrong in their guesses?
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
Print the answer.
3
10 20 39
1
The area would be square meters if , and square meters if .
However, no pair of positive integers and would make the area square meters.
Thus, we can only be sure that Person guessed wrong.
5
666 777 888 777 666
3