求 ab mod ma^b\bmod mabmodm。
一行 a,b,m。
输出结果。
3 13 1000
323
0≤a,b≤10180\le a,b\le10^{18}0≤a,b≤1018,1≤m≤10181\le m\le10^{18}1≤m≤1018。
使用您的 星源智一OJ 通用账户