#H757. 取余运算
取余运算
题目描述
输入b,p,k的值,求 mod k的值。其中b,p,为不超过int类型数。
输入格式
输入b,p,k的值。
输出格式
求 mod k的值。
2 10 9
2^10 mod 9=7
输入b,p,k的值,求bp mod k的值。其中b,p,k2为不超过int类型数。
输入b,p,k的值。
求bp mod k的值。
2 10 9
2^10 mod 9=7
By signing up a 黑猫OJ universal account, you can submit code and join discussions in all online judging services provided by us.