How To Solve ?

Revision en2, by azaxnoot, 2015-08-15 15:39:16

Hi , Experts .

Can someone please give me some idea about how to solve this problem . The problem link is in Below .

Link : Problem Link

The modulus Part can be solved by BigMod Operation. But how to calculate a^b here . I have not any idea about how to solve this Part more precisely how to optimize this part . Can someone Help me please .

Thanks in Advance .

Tags uva 11582, bigmod

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English azaxnoot 2015-08-15 15:39:16 27
en1 English azaxnoot 2015-08-15 15:38:16 452 Initial revision (published)