#P1406. a*b%c
a*b%c
Background
Description
计算a*b%c的值
Format
Input
多组数据(最大大约50万组),每组数据输入3个整数A,B,C。
0<=A,B<=10^18
0<=C<=10^9
Output
输出A*B%C。
Samples
Limitation
1s, 1024KiB for each test case.
Related
In following contests:
In following contests:
By signing up a 追梦算法网 universal account, you can submit code and join discussions in all online judging services provided by us.