Loading

Welcome

欢迎来到 @7KByte 的博客

下面是博客代码的缺省源

/*
    Author : SharpnessV & SharpnessX & 7KByte
    Right Output ! & Accepted !
*/
#include<bits/stdc++.h>
//#include<atcoder/all>
//#define int long long

#define rep(i, a, b) for(int i = (a);i <= (b);i++)
#define pre(i, a, b) for(int i = (a);i >= (b);i--)
#define rp(i, a) for(int i = 1; i <= (a); i++)
#define pr(i, a) for(int i = (a); i >= 1; i--)
#define go(i, x) for(auto i : x)

#define mp make_pair
#define pb push_back
#define pf push_front
#define fi first
#define se second
#define si(x) (int)(x).size()
#define pc putchar
#define gc getchar
#define el putchar('\n')

using namespace std;
const double eps = 1e-15, pi = 3.1415926535897932385;
typedef long long LL;
typedef pair<int,int> Pr;
const int dx[4] = {1, 0, -1, 0}, dy[4] = {0, 1, 0, -1}, inf = 0x7fffffff, inf_ = 0x80000000;
const LL Inf = 0x7fffffffffffffffLL, Inf_ = 0x8000000000000000LL;
//char buf[1<<22],*p1=buf,*p2=buf;
//#define getchar() (p1==p2&&(p2=(p1=buf)+fread(buf,1,1<<21,stdin),p1==p2)?EOF:*p1++)
template <typename T> inline void read(T &x) {
    x = 0;bool flag = false; char ch = getchar();
    while (ch < '0' || ch > '9')flag = ch == '-' ? true : false, ch = getchar();
    while (ch >= '0' && ch <= '9')x = (x << 3) + (x << 1) + (ch & 15), ch = getchar();
    if(flag) x = -x;
}
template <typename T,typename... Args> inline void read(T &t,Args&... args){read(t);read(args...);}
int gcd(int x,int y) {	return y ? gcd(y, x % y) : x;}
int lcm(int x,int y) {	return x / gcd(x, y) * y;}
#define P 1000000007
//#define P 998244353
#define bas 229
template<typename T> void cmx(T &x, T y){if(y > x) x = y;}
template<typename T> void cmn(T &x, T y){if(y < x) x = y;}
template<typename T> void ad(T &x, T y) {x += y; if(x >= P) x -= P;}
template<typename T> void su(T &x, T y) {x -= y; if(x < 0) x += P;}
int Pow(int x, int y){
	int now = 1 ;
	for(; y; y >>= 1, x = 1LL * x * x % P)if(y & 1) now = 1LL * now * x % P;
	return now;
}

/***************************************************************************************************************************/
/*                                                                                                                         */
/***************************************************************************************************************************/
posted @ 2021-06-06 15:12  7KByte  阅读(722)  评论(1编辑  收藏  举报