#abc227b. B - KEYENCE building
B - KEYENCE building
Score : points
问题陈述
有 名编号为 到 的人。
第 个人猜测 KEYENCE 总部大楼的建筑面积为 平方米。
KEYENCE 总部大楼的形状如下所示,其中 和 是某些 正整数。
即,该大楼的建筑面积可以表示为 。
仅根据这一信息,可以确保有多少名 人的猜测是错误的?
以上为通义千问 qwen-max 翻译,仅供参考。
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.
Sample Input 1
3
10 20 39
Sample Output 1
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.
Sample Input 2
5
666 777 888 777 666
Sample Output 2
3
update @ 2024/3/10 09:56:58
相关
在下列比赛中: