showing the correct ans for all test cases in codeblocks but when i am submitting on hackerblocks it is showing WA in many test cases
my code https://ide.codingblocks.com/#/s/28911
ques link https://hack.codingblocks.com/contests/c/528/758
Showing WA in fibosum
When you are using modular operation , your answer may get a negative sign , so take modulo like (a=(a%m+m)%m)
It will work.
thank u very much. it worked. we are doing this so as to make the no inside the modulus as positive ???