1 / 3
Oct 2011

Whats wrong with the following submission ID : 5765626 :

//code removed
  • created

    Oct '11
  • last reply

    Oct '11
  • 2

    replies

  • 118

    views

  • 2

    users

when n=1, depending on k there is chance modExp(0 ,k,n) returns 1

That is one corner case. Even after fixing that even my code gives WA .... Let me knows if you find anything interesting

I tried playing with n=1 but to no avail. I dont find anything wrong with the code. Wonder whats missing! astonished

Suggested Topics

Topic Category Replies Views Activity
C and C++ 0 16 8d

Want to read more? Browse other topics in C and C++ or view latest topics.