Help in Self Powers(Project Euler Hackerrank problem 48)

Revision en2, by Not-Afraid, 2019-06-29 15:21:50

I am getting TLE on last test case of this problem Link to the problem, i used Big mod Link to Big mod implmentation for multiplication while calculating power as we need last ten digits so we have to modulo it by 1e10 which will overflow in C++.

Any type of help is appreciated. Thanks in advance.

Tags #number theory

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English Not-Afraid 2019-06-29 15:21:50 107 Tiny change: 'mentation](https://w' -> 'mentation])(https://w'
en1 English Not-Afraid 2019-06-29 15:17:46 409 Initial revision (published)