#P1553. 求和

求和

Problem Description

Input Format

多组数据,第一行为T,代表有T组
接下来T行 ,每行两个正整数x和n,用空格隔开
1<=T<=20
1<=x<=10
1<=n<=1e8

Output Format

T行,每行一个整数,表示结果
5
5 7
2 10
2 4
1 8
10 100000000
140
110
20
36
50000000500000000

Source

20新生赛-3