Блог пользователя haresh_kh

Автор haresh_kh, история, 10 лет назад, По-английски

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. :)

  • Проголосовать: нравится
  • +6
  • Проголосовать: не нравится

»
10 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

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