#CF2044A. Easy Problem

    ID: 6924 传统题 1000ms 256MiB 尝试: 1 已通过: 1 难度: 10 上传者: 标签>暴力数学CodeforcesCodeforces Round 993(Div4)Div4ACF2044A800

Easy Problem

题目描述

给定一个整数 nn 求有多少对二元组 (a,b)(a,b) 满足 a=nb a = n - b

输入格式

第一行输入一个整数 tt (1t99)(1 \le t \le 99),表示数据组数
接下来第二行到第 (t+1)(t+1) 行,每行一个整数 nn (1n100)(1 \le n \le 100)

输出格式

tt 行,每行一个整数表示有多少个符合条件的二元组

样例

3
2
4
6
1
3
5

样例说明

In the first test case, the only ordered pair that works is (a,b)=(1,1) (a,b)=(1,1) .

In the second test case, the three ordered pairs of (a,b) (a,b) that work are (3,1),(2,2),(1,3) (3,1), (2,2), (1,3) .

来源

Codeforces 2044A,英文题名 Easy Problem。