a*b%c

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

Description

如题

Format

Input

多组数据(大约500000组),每组数据输入3个整数A,B,C。

0<=A,B<=10^18

0<=C<=10^9

Output

输出A*B%C。

Samples

464705145281827961 500169724478358962 41467334
34403656

Limitation

1s, 1024KiB for each test case.

第七届SWPU-ACM新生预选赛

Not Attended
Status
Done
Rule
ACM/ICPC
Problem
103
Start at
2022-9-19 14:00
End at
2022-10-28 14:00
Duration
936 hour(s)
Host
Partic.
58