逆元公式:
https://www.luogu.ac.cn/problem/list
112.16.216.176:29860
http://nflsoi.cc:20035/https://acm.hdu.edu.cn/contests/contest_list.php
team0058
115399
team0059
404861求关!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
int main(){
// freopen(".in","r",stdin);
// freopen(".out","w",stdout);
return 0;
}
/*
*/namespace IO
{
constexpr int fsize = 1<<24;
#define getchar() ((IO::si!=IO::ti||(IO::ti=(IO::si=IO::input)+fread(IO::input,1,IO::fsize,stdin))),IO::si!=IO::ti?*(IO::si++):EOF)
#define putchar(c) ((IO::out.so!=IO::out.to||(fwrite(IO::out.output,1,IO::fsize,stdout),IO::out.so=IO::out.output)),*(IO::out.so++)=c)
char input[fsize],*si = input,*ti = input;
struct output_stream
{
char output[fsize],*so = output,*to = output + fsize;
inline ~output_stream()
{
if(so == output) return;
fwrite(output,1,so-output,stdout);
so = output;
}
}out;
template<typename T>inline void read(T &x)
{
int c = getchar(),p = 1;
x = 0;
while(c < 48||c > 57)
{
if(c == 45) p = -1;
c = getchar();
}
while(48 <= c&&c <= 57)
{
x = (x<<3)+(x<<1)+(c^48);
c = getchar();
}
x *= p;
}
template<typename T>inline void write(T x)
{
static int c[40],cnt = 0;
if(x < 0) putchar(45),x = -x;
if(!x) putchar(48);
while(x) c[++cnt] = x%10^48,x /= 10;
while(cnt) putchar(c[cnt--]);
}
}
using IO::read;
using IO::write;298649991203052898
5428931384572793919
3299995981154426290