这道题可以运用 Python 来解决问题,不会造成溢出。 代码如下: Python复制a = int(input()) b = int(input()) p = int(input()) print(a % p * b % p)