mirror of
https://github.com/wczffl-503/OI-Codes.git
synced 2025-05-10 16:20:27 +08:00
19 lines
231 B
C++
19 lines
231 B
C++
#include <bits/stdc++.h>
|
|
#define int long long
|
|
using namespace std;
|
|
|
|
int A, B, P, ANS;
|
|
__int128 a, b, p, ans;
|
|
|
|
signed main()
|
|
{
|
|
cin >> A >> B >> P ;
|
|
a = A;
|
|
b = B;
|
|
p = P;
|
|
ans = a * b % p;
|
|
ANS = ans;
|
|
cout << ANS ;
|
|
return 0;
|
|
}
|