Codeforces Round #723 DIV2 E問題 (2500pt)
Problem description
省略
省略
C++に変換後のコードはこちら
//no-unlocked
#define MD 998244353
int N, K, A[2d5+1], ind[];
Comb<Modint> c;
{
int m = 0, b = int_inf;
rd(N,K,A(N));
rep(i,N) ind[A[i]] = i;
ind[N] = -1;
rep[A](i,N){
if(ind[i+1] < b) m++;
b = ind[i+1];
}
wt(c.H(N+1,K-m));
}
Current time: 2024年04月26日00時12分06秒
Last modified: 2021年05月29日20時17分57秒 (by laycrs)
Tags: Competitive_Programming_Incomplete Codeforces CF723 CF_DIV2_E
トップページに戻る
Logged in as: unknown user (not login)