結果

問題 No.2250 Split Permutation
ユーザー tailstails
提出日時 2023-03-19 00:21:08
言語 cLay
(20240104-1)
結果
AC  
実行時間 35 ms / 3,000 ms
コード長 197 bytes
コンパイル時間 2,872 ms
コンパイル使用メモリ 175,780 KB
実行使用メモリ 11,820 KB
最終ジャッジ日時 2023-10-18 17:38:21
合計ジャッジ時間 4,797 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
7,772 KB
testcase_01 AC 3 ms
7,772 KB
testcase_02 AC 2 ms
7,772 KB
testcase_03 AC 2 ms
7,772 KB
testcase_04 AC 3 ms
7,772 KB
testcase_05 AC 2 ms
7,772 KB
testcase_06 AC 3 ms
7,772 KB
testcase_07 AC 2 ms
7,772 KB
testcase_08 AC 2 ms
7,772 KB
testcase_09 AC 3 ms
7,772 KB
testcase_10 AC 2 ms
7,772 KB
testcase_11 AC 2 ms
7,772 KB
testcase_12 AC 3 ms
7,772 KB
testcase_13 AC 3 ms
7,772 KB
testcase_14 AC 2 ms
7,772 KB
testcase_15 AC 2 ms
7,772 KB
testcase_16 AC 2 ms
7,772 KB
testcase_17 AC 3 ms
7,772 KB
testcase_18 AC 33 ms
11,820 KB
testcase_19 AC 32 ms
11,484 KB
testcase_20 AC 28 ms
11,124 KB
testcase_21 AC 17 ms
9,844 KB
testcase_22 AC 26 ms
10,812 KB
testcase_23 AC 6 ms
8,304 KB
testcase_24 AC 25 ms
10,824 KB
testcase_25 AC 34 ms
11,820 KB
testcase_26 AC 12 ms
9,228 KB
testcase_27 AC 5 ms
8,084 KB
testcase_28 AC 7 ms
8,492 KB
testcase_29 AC 34 ms
11,820 KB
testcase_30 AC 7 ms
8,556 KB
testcase_31 AC 3 ms
7,940 KB
testcase_32 AC 8 ms
8,776 KB
testcase_33 AC 18 ms
10,120 KB
testcase_34 AC 6 ms
8,316 KB
testcase_35 AC 13 ms
9,384 KB
testcase_36 AC 8 ms
8,744 KB
testcase_37 AC 35 ms
11,820 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#define MD 998244353
ll@n;
fenwick<ll>f1,f2;
f@[1,2].malloc(n,1);
Mint a1,a2,c=(MD+1)/2;
rep(i,n){
	ll@p--;
	a1+=f1.range(p,n);
	a2+=f2.range(p,n)+a2;
	f1.add(p,1);
	f2.add(p,c+=c);
}
wt(a1*c-a2);
0