puppy and sum codechef solution

Solutions on MaxInterview for puppy and sum codechef solution by the best coders in the world

showing results for - "puppy and sum codechef solution"
Leah
15 May 2017
1t=int(input())
2for i in range(t):
3  d,n=map(int,input().split())
4  for i in range(d):
5    b=n*(n+1)/2
6    n=b
7   print(int(b))
8