Calculating (a power b) mod p
How to calculate (a power b) mod p correctly if b is exceeding long long integer limit in c++.
AMA: TheOneYouWant
Atcoder ABC #351 Short Solution Discussion