文理学院程序设计在线练习


Function

Time Limit: 1 Second(s)    Memory Limit: 32 MB

Total Submission(s): 4   Accepted Submission(s): 0
Problem Description

Let’s define a function f(x). f(x) = f(x-1) + 1. f(0) = k.
So can you calculate the value of f(x) with given x,k?

Input

The first line of input is the number of testcases T.
Each testcase has a line contains x and k.
T<=1000
1<=x,k<=1000000000

Output

For each testcase, output one line with an integer representing the answer.

Sample Input
1
5 2
Sample Output
7
Source

2019绍兴市计算机技能竞赛