#abc227b. B - KEYENCE building

B - KEYENCE building

Score : 200200 points

问题陈述

NN 名编号为 11NN 的人。

ii 个人猜测 KEYENCE 总部大楼的建筑面积为 SiS_i 平方米。

KEYENCE 总部大楼的形状如下所示,其中 aabb 是某些 正整数
即,该大楼的建筑面积可以表示为 4ab+3a+3b4ab+3a+3b

仅根据这一信息,可以确保有多少名 NN 人的猜测是错误的?

以上为通义千问 qwen-max 翻译,仅供参考。

Problem Statement

There are NN people numbered 11 to NN.

Person ii guessed the building area of KEYENCE headquarters building to be SiS_i square meters.

The shape of KEYENCE headquarters building is shown below, where aa and bb are some positive integers.
That is, the building area of the building can be represented as 4ab+3a+3b4ab+3a+3b.

Based on just this information, how many of the NN people are guaranteed to be wrong in their guesses?

Sketch of KEYENCE headquarters building

Constraints

  • 1N201 \leq N \leq 20
  • 1Si10001 \leq S_i \leq 1000
  • All values in input are integers.

Input

Input is given from Standard Input in the following format:

NN

S1S_1 \ldots SNS_N

Output

Print the answer.

Sample Input 1

3
10 20 39

Sample Output 1

1

The area would be 1010 square meters if a=1,b=1a=1,b=1, and 3939 square meters if a=2,b=3a=2,b=3.

However, no pair of positive integers aa and bb would make the area 2020 square meters.

Thus, we can only be sure that Person 22 guessed wrong.

Sample Input 2

5
666 777 888 777 666

Sample Output 2

3

update @ 2024/3/10 09:56:58