正文
增加 1 行删除 1 行
13 行未改动14151617181920212256 行未改动13 行未改动#include<bits/stdc++.h>using namespace std;#define pb push_back#define ar(x) array<int,x>const int N=1e3+10,INF=1e9,MOD=998244353;inline void mod(int &x){ if(x>=MOD) x-=MOD; if(x<0) x+=MOD; }inline int qm(int x,int y=MOD-2){ int res=1; for(;y;y>>=1,x=1ll*x*x%MOD) if(y&1) res=1ll*res*x%MOD; return res; }#define gc getchar()56 行未改动13 行未改动14151617181920212256 行未改动13 行未改动#include<bits/stdc++.h>using namespace std;#define pb push_back#define ar(x) array<int,x>const int N=1e3+10,INF=1e9,MOD=998244353;inline void mod(int &x){ if(x>=MOD) x-=MOD; if(x<0) x+=MOD; }inline int qm(int x,int y=MOD-2){ int res=1; for(;y;y>>=1,x=1ll*x*x%MOD) if(y&1) res=1ll*res*x%MOD; return res; }#define gc getchar()56 行未改动