8638: Quel'Thalas

内存限制:128 MB 时间限制:1 S
题面:传统 评测方式:文本比较 上传者:
提交:1 通过:1

题目描述

Kael'thas has a magic square which contains all points on the 2D plane whose coordinates are integers within [0,n]

He can draw several straight fire lines on the plane. Each line will cover all the points on it. Note that the lines have no endpoints and extend to infinity in both directions.

And there is one special rule: he cannot draw a line that covers the point (0,0) because his throne is on (0,0)

What is the minimum number of lines he needs to draw so that the lines will cover all the points of the magic square except (0,0)?

输入格式

The input consists of multiple test cases.

The first line contains one integer T (1T50) denoting the number of test cases.

The following are T test cases.

Each test case consists of one line containing one integer n (0n50).

输出格式

For each test case, output one line containing one integer indicating the answer.

输入样例 复制

1
2

输出样例 复制

4