Пожалуйста, прочтите новое правило об ограничении использования AI-инструментов. ×

Help in Self Powers(Project Euler Hackerrank problem 48)

Правка en1, от Not-Afraid, 2019-06-29 15:17:46

I am getting TLE on last test case of this problem Link to the problem, i used Big mod 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.

Теги #number theory

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский Not-Afraid 2019-06-29 15:21:50 107 Tiny change: 'mentation](https://w' -> 'mentation])(https://w'
en1 Английский Not-Afraid 2019-06-29 15:17:46 409 Initial revision (published)