結果

問題 No.2616 中央番目の中央値
ユーザー 👑 p-adicp-adic
提出日時 2023-12-19 18:28:15
言語 cLay
(20240104-1)
結果
AC  
実行時間 378 ms / 2,000 ms
コード長 179 bytes
コンパイル時間 7,369 ms
コンパイル使用メモリ 193,448 KB
実行使用メモリ 40,448 KB
最終ジャッジ日時 2023-12-21 23:47:31
合計ジャッジ時間 12,873 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
7,488 KB
testcase_01 AC 3 ms
7,488 KB
testcase_02 AC 2 ms
7,488 KB
testcase_03 AC 3 ms
7,488 KB
testcase_04 AC 2 ms
7,488 KB
testcase_05 AC 3 ms
7,488 KB
testcase_06 AC 2 ms
7,488 KB
testcase_07 AC 3 ms
7,488 KB
testcase_08 AC 2 ms
7,488 KB
testcase_09 AC 3 ms
7,488 KB
testcase_10 AC 2 ms
7,488 KB
testcase_11 AC 3 ms
7,488 KB
testcase_12 AC 3 ms
7,488 KB
testcase_13 AC 4 ms
7,744 KB
testcase_14 AC 5 ms
7,872 KB
testcase_15 AC 9 ms
8,512 KB
testcase_16 AC 16 ms
9,664 KB
testcase_17 AC 22 ms
9,920 KB
testcase_18 AC 39 ms
11,712 KB
testcase_19 AC 89 ms
16,448 KB
testcase_20 AC 85 ms
15,936 KB
testcase_21 AC 214 ms
25,300 KB
testcase_22 AC 328 ms
40,440 KB
testcase_23 AC 365 ms
38,528 KB
testcase_24 AC 175 ms
38,144 KB
testcase_25 AC 174 ms
38,144 KB
testcase_26 AC 330 ms
38,272 KB
testcase_27 AC 372 ms
38,272 KB
testcase_28 AC 340 ms
38,912 KB
testcase_29 AC 361 ms
40,448 KB
testcase_30 AC 378 ms
39,168 KB
testcase_31 AC 377 ms
38,144 KB
testcase_32 AC 340 ms
39,168 KB
testcase_33 AC 342 ms
39,936 KB
testcase_34 AC 360 ms
40,192 KB
testcase_35 AC 351 ms
39,168 KB
testcase_36 AC 343 ms
39,424 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#define MD 998244353
ll@N,@A[N],x;Mint a=0;Comb<Mint>c;segtree<ll>t;t.malloc(N,1);rep(i,N)x=t.getSum(A[i]-1,A[i]),a+=c.C(2x+N-A[i]-i,x)*c.C(A[i]-1+i-2x,i-x),t.add(A[i],N,1);wt(a);
0