iamdumb's blog

By iamdumb, history, 9 years ago, In English

Hello guys,I tried this question(Big Mod) but what keeps me irritating is that I think it is efficient way to do.But still it keeps on giving me WA.I request you to please have a look at this submission

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

| Write comment?
»
9 years ago, # |
  Vote: I like it +1 Vote: I do not like it

It appears that there is an integer overflow. Try taking calling the power function in the following manner: powerM(B%M,P,M)