Zidaan's blog

By Zidaan, history, 4 months ago, In English

Hello, I am training on solving recursion and backtracking problems and this easy one of them doesn't get AC with me and I done not know the reason as well as I searched for this and all solutions like me. Link Problem : https://vjudge.net/problem/UVA-10344 Link Solution: https://ideone.com/sh4a6w

  • Vote: I like it
  • +1
  • Vote: I do not like it

4 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Change sum+=a[idx] , sum-=a[idx], sum*=a[idx] to sum+a[idx],sum-a[idx],sum*a[idx].