luogu#P5172. [清华集训 2014] Sum
[清华集训 2014] Sum
Problem Description
Given positive integers and , compute:
Input Format
The first line contains an integer , indicating that there are testdata cases.
The next lines each contain two positive integers and .
Output Format
Output lines, each containing one integer representing the answer.
3
3 5
3 6
3 7
3
1
-1
Hint
Constraints
| Test Point ID | |||
|---|---|---|---|
Translated by ChatGPT 5