puppy and sum codechef solution code example
Example: puppy and sum codechef solution
t=int(input())
for i in range(t):
d,n=map(int,input().split())
for i in range(d):
b=n*(n+1)/2
n=b
print(int(b))
t=int(input())
for i in range(t):
d,n=map(int,input().split())
for i in range(d):
b=n*(n+1)/2
n=b
print(int(b))