haresh_kh's blog

By haresh_kh, history, 10 years ago, In English

Question -> https://www.codechef.com/FEB16/problems/STROPR/ I have used modular/binary exponention and modular inverse(using Euler Theorem). Few of the test cases(including the sample test cases) are giving right answer. Please help me find the bug in the code. Here is the link for my code to the solution -> http://ideone.com/q8MaoZ My Submission link on Codechef -> https://www.codechef.com/viewsolution/9424744 Thanks in advance. :)

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

| Write comment?
»
10 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Well, you made a silly mistake my friend. You missed a cout statement for m==1 case. :P