Python3 一行代码系列——P1226 【模板】快速幂

· · 题解

评测记录。

print((lambda a, b, p: f'{a}^{b} mod {p}={pow(a, b, p)}')(*map(int, input().split())))