| 2022 SYSU School Contest |
|---|
| Finished |
Find the number of $$$x$$$ satisfied the following condition:
The first line contains a single integer $$$t$$$ ($$$1 \leq t \leq 10000$$$) — the number of testcases. Each testcase contains two integers $$$n$$$ and $$$a$$$ in a line. ($$$1 \leq a \leq n \leq 10^{18}$$$)
For each testcase, print the number of $$$x$$$ satisfied the given conditions in a single line. Since the answer can be large, print it modulo $$$998244353$$$.
11 1
2
| Name |
|---|


