[UVA] 374 - Big Mod
Big Mod
Calculate
for large values of B, P, and M using an efficient algorithm.
(That's right, this problem has a time dependency !!!.)
Input
Three integer values (in the order B, P, M) will be read one number per line. B and P are integers i...