Given three integers a,b and c, find the remainder when a^b is divided by c. Here, a^b will be well beyond the largest 64 bit integer.
Example:
a = 1000 b = 1000 c = 3
Answer = 1
54 Solvers
Arrange vector in ascending order
541 Solvers
221 Solvers
167 Solvers
136 Solvers
Problem Tags