#P14117. [SCCPC 2021] Chuanpai

[SCCPC 2021] Chuanpai

题目描述

Chuanpai\textit{Chuanpai}(川牌) is a kind of traditional playing cards in Sichuan. Each card is marked with two integers xx and yy where 1xy61 \le x \le y \le 6.

:::align{center} Some samples of Chuanpai.

The first one is marked with 33 and 44, while the second one is marked with 22 and 55. :::

Given an integer kk, please count the number of different types of cards satisfying x+y=kx + y = k.

We say two cards with integers x1x_1, y1y_1 and x2x_2, y2y_2 are of different types if x1y1x_1 \ne y_1 or x2y2x_2 \ne y_2.

输入格式

There are multiple test cases. The first line of the input contains an integer TT (1T1001 \le T \le 100) indicating the number of test cases. For each test case:

The first and only line contains an integer kk (1k1001 \le k \le 100).

输出格式

For each test case output one line containing one integer, indicating the number of types of cards satisfying x+y=kx + y = k.

4
4
5
8
100
2
2
3
0

提示

We use (a,b)(a, b) to indicate a type of card whose x=ax = a and y=by = b.

For the first sample test case the valid types of cards are (1,3)(1, 3) and (2,2)(2, 2).

For the second sample test case the valid types of cards are (1,4)(1, 4) and (2,3)(2, 3).

For the third sample test case the valid types of cards are (2,6)(2, 6), (3,5)(3, 5) and (4,4)(4, 4).