#include #include using namespace std; using namespace atcoder; #define REP(i,a,n) for(int i=(a); i<(int)(n); i++) #define rep(i,n) REP(i,0,n) #define FOR(it,c) for(__typeof((c).begin()) it=(c).begin(); it!=(c).end(); ++it) #define ALLOF(c) (c).begin(), (c).end() typedef long long ll; typedef unsigned long long ull; //using mint = modint1000000007; using mint = modint998244353; class modutils { vector fact, invfact; public: modutils(int n = 2000005):fact(n+1),invfact(n+1) { fact[0] = 1; for(int i=1; i<=n; i++) fact[i] = fact[i-1] * i; invfact[n] = fact[n].inv(); for(int i=n; i>=1; i--) invfact[i-1] = invfact[i] * i; } mint pow(mint x, ll n) { return x.pow(n); } mint comb(ll n, ll k) { if(n<0 || k<0 || n> a >> b; cout << mutil.comb(a-1+b-1,a-1).val() << endl; return 0; }