⑩

· · 个人记录

#include <bits/stdc++.h>

using namespace std;

#define x1 _edsgfdshgyfdhgfdgh

#define y1 _akifdshdshfju

#define endl '\n'

#define TRACE 1
#define tcout TRACE && cout

#define int long long

#define fst ios::sync_with_stdio(false); cin.tie(0); cout.tie(0);

#define prq priority_queue

#define uns unordered_set

#define unm unordered_map

#define fre freopen(".in","r",stdin);freopen(".out","w",stdout);

const int P = 998244353;

const int INF = 0x3f3f3f3f3f3f3f3f;

const int N = 1e6+10, M = 1e8 + 10;

int __lcm(int a,int b){return a/__gcd(a,b)*b;}

bool prime(int x){if(x<2)return 0;for(int i=2;i*i<=x;i++){if(x%i==0)return 0;}return 1;} 

int qpow(int a,int b,int c){if(a==0)return 1;int ans=1ll;while(b>0){if(b%2==1)ans=ans*a%c;b/=2,a=a*a%c;}return ans%c;}
//a^b % c

int n,m,r,c;
int x1,x2,y1,y2;

signed main()
{
    fst

    return 0;
}


/*
int lowbit(int x){return x&-x;}

void add(int x,int y){while(x<=n){d[x]+=y;x+=lowbit(x);}}

int query(int x){int res=0;while(x){res+=d[x];x-=lowbit(x);}return res;}
*/

/*
struct mx{  int m[M][M];mx(){memset(m,0,sizeof(m));}mx(int x){memset(m,0,sizeof(m));for(int i=0;i<M;i++){m[i][i]=x;}}};

mx operator * (const mx a,const mx b){mx c;for(int k=0;k<M;k++){for(int i=0;i<M;i++){for(int j=0;j<M;j++){c.m[i][j]+=a.m[i][k]*b.m[k][j];c.m[i][j]%=P;}}}return c;}

mx fpm(mx a,int n){mx res(1);while(n){if(n%2){res=res*a;}n/=2;a=a*a;}return res;}
*/

/*
bool isP[N];

int P[M],cnt=0;

void f(int n){memset(isP,1,sizeof(isP));isP[1]=0;for(int i=2;i<=n;i++){if(isP[i])P[++cnt]=i;for(int j=1;j<=cnt&&i*P[j]<=n;j++){isP[i*P[j]]=0;if(i%P[j]==0)break;}}}
*/

/*
int f[N];

int find(int x){if(f[x]==x)return x;return f[x]=find(f[x]);}
*/

/*
int n,a[N],f[N];stack<int>s;

void _(){for(int i=n;i>=1;i--){while(!s.empty()&&a[s.top()]<=a[i]) s.pop();f[i]=s.empty()?0:s.top();s.push(i);}}
*/

/*
int minq[N],maxq[N],a[N];

void min_deque(){int h=1,t=0;for(int i=1;i<=n;i++){while(h<=t&&minq[h]+k<=i) h++;while(h<=t&&a[i]<a[minq[t]]) t--;minq[++t]=i;if(i>=k)cout<<a[minq[h]]<<' ';}cout<<endl;}

void max_deque(){int h=1,t=0;for(int i=1;i<=n;i++){while(h<=t&&maxq[h]+k<=i) h++;while(h<=t&&a[i]>a[maxq[t]]) t--;maxq[++t]=i;if(i>=k)cout<<a[maxq[h]]<<' ';}}
*/

/*
vector<int>g[N];vector<int>ans;int ind[N];

void top_sort(){queue<int>q;for(int i=1;i<=n;i++){if(ind[i]==0){q.push(i);}}while(!q.empty()){auto u=q.front();q.pop();ans.push_back(u);for(auto v:g[u]){ind[v]--;if(ind[v]==0){q.push(v);}}}}
*/

/*
int len,a[N];int f[20][20][2][2];//f[pos][pre][lim][zero]

int dfs(int pos,int pre,bool lim,bool zero){auto &v=f[pos][pre][lim][zero];if(v!=-1)return v;if(pos==0){return 1;}int res=0;int end=lim?a[pos]:9;for(int i=0;i<=end;i++){if(zero||abs(pre-i)>=2)res+=dfs(pos-1,i,lim&(i==end),zero&(i==0));}v=res;return res;}

int calc(int x){memset(f,-1,sizeof(f));len=0;while(x){a[++len]=x%10;x/=10;}int res=dfs(len,0,1,1);return res;}
*/

/*
int exgcd(int a,int b,int &x,int &y){if(b==0){x=1,y=0;return a;}else{int x2,y2;int d=exgcd(b,a%b,x2,y2);x=y2;y=x2-(a/b)*y2;return d;}}
*/