mirror of
https://github.com/wczffl-503/OI-Codes.git
synced 2025-07-07 18:06:58 +08:00
Add FZOI Codes
This commit is contained in:
18
FZOI/「模板」64 位整数乘法.cpp
Normal file
18
FZOI/「模板」64 位整数乘法.cpp
Normal file
@ -0,0 +1,18 @@
|
||||
#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;
|
||||
}
|
Reference in New Issue
Block a user