题解:P10446 64位整数乘法

· · 题解

这道题可以运用 Python 来解决问题,不会造成溢出。

代码如下:

a = int(input())
b = int(input())
p = int(input())
print(a % p * b % p)