Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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))
 
PREVIOUS NEXT
Tagged: #puppy #sum #codechef #solution
ADD COMMENT
Topic
Name
5+1 =