#H757. 取余运算

取余运算

题目描述

输入b,p,k的值,求bpb^p mod k的值。其中b,p,k2k^2为不超过int类型数。

输入格式

输入b,p,k的值。

输出格式

bpb^p mod k的值。

2 10 9
2^10 mod 9=7