Math Test
时间限制:C/C++/Rust/Pascal 5秒,其他语言10秒
空间限制:C/C++/Rust/Pascal 256 M,其他语言512 M
64bit IO Format: %lld

题目描述

For a given a, n, find the number of integer pairs (x,y) such that .

输入描述:

The first line contains one integer T  — the number of test cases.
For each test cases, the first line contains two integers .

输出描述:

For each test cases, output one number - the number of solutions.
示例1

输入

复制
3
1 10
2 100
3 100

输出

复制
3
4
8