Pair of roses problem 'wrong answers'

https://ide.codingblocks.com/#/s/13327

https://hack.codingblocks.com/contests/c/474/696 i am unable to understand where i am failing the test case in this problem, working fine in IDE

You have to update the d1 in line 65 of your code also when there are many occurences of such pairs .Otherparts of ur code is fine.

1 Like