摘要:
#include <bits/stdc++.h> using namespace std; using point_t=long double; //全局数据类型,可修改为 long long 等 constexpr point_t eps=1e-8; constexpr long double P 阅读全文
摘要:
#include<bits/stdc++.h> using namespace std; #define endl '\n' #define LL long long #define x first #define y second // #define int long long const LL 阅读全文
摘要:
返回的值可能会存在负数(即使传入参数a和b中的数全是正整数),若有需要可以给mul返回的结果取正 constexpr int P = 998244353; int power(int a, int b) { int res = 1; for (; b; b /= 2, a = 1LL * a * a 阅读全文
摘要:
#include<bits/stdc++.h> using namespace std; #define endl '\n' #define x first #define y second #define int long long #define LL long long const int N 阅读全文
摘要:
模板题 #include<bits/stdc++.h> using namespace std; #define int long long #define endl '\n' #define x first #define y second const int N=1e6+10,mod=99824 阅读全文