My code runs fine on ideone but shows NZEC on SPOJ. Please help.
https://ideone.com/ED5G64 — My code is here
Try this:
1 ((a*b)-c+d)
Thanks