Please help ,my output is coming true but answer is not correct(coins and triangle)

https://www.codechef.com/viewsolution/28409383

Consider the testcase:

1
1
1 Like

still the solution is not correcthttps://www.codechef.com/viewsolution/28411963

Consider the testcase:

1
2
1 Like

still not workinghttps://www.codechef.com/viewsolution/28414825

Consider the testcase:

1
10

Looking at your code, it looks like you’ve slightly misread the question - in particular, how many coins there are in each row :slight_smile:

1 Like