Codechef FEB16, Chef and Strange Operations, Need help in finding the bug!

Revision en1, by haresh_kh, 2016-02-15 16:24:40

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

Tags modular inverse, binary exponentiation, codechef long

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English haresh_kh 2016-02-15 16:24:40 514 Initial revision (published)