409895: GYM103828 H Kite

Memory Limit:256 MB Time Limit:2 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

H. Kitetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard output
The picture is to show the shape of the kite.

Given an integer $$$n$$$, count the number of different kites in a regular $$$n$$$-gon.

A regular $$$n$$$-gon is a convex polygon consisting of $$$n$$$ equal-length sides and all its angles are equal.

A kite is a convex quadrilateral $$$A$$$ $$$B$$$ $$$C$$$ $$$D$$$, such that $$$AB = AD$$$ and $$$CB = CD$$$.

Two kites are considered different if they differ by at least one point.

Input

The first line of the input contains a single integer $$$T \space (1 \le T \le 2 \cdot 10^5)$$$ - the number of test cases.

Then $$$T$$$ lines follow, each containing a single integer $$$n \space (4 \le n \le 10^9)$$$ - the number of sides of the polygon.

Output

For each test case, print a single line containing the number of different kites in a regular $$$n$$$-gon.

ExampleInput
2
4
5
Output
1
0
Note

Explanation of the sample:

In the first testcase, the only kite is the whole $$$4$$$-gon.

In the second testcase, there are no kites.

加入题单

上一题 下一题 算法标签: