結果

問題 No.2131 Concon Substrings (COuNt Version)
ユーザー tailstails
提出日時 2022-11-25 21:54:10
言語 cLay
(20240420-1)
結果
AC  
実行時間 21 ms / 2,000 ms
コード長 223 bytes
コンパイル時間 3,542 ms
コンパイル使用メモリ 179,784 KB
実行使用メモリ 7,616 KB
最終ジャッジ日時 2024-04-10 03:06:08
合計ジャッジ時間 4,604 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
6,816 KB
testcase_01 AC 2 ms
6,940 KB
testcase_02 AC 2 ms
6,948 KB
testcase_03 AC 8 ms
6,940 KB
testcase_04 AC 2 ms
6,940 KB
testcase_05 AC 2 ms
6,940 KB
testcase_06 AC 2 ms
6,944 KB
testcase_07 AC 21 ms
6,944 KB
testcase_08 AC 6 ms
6,944 KB
testcase_09 AC 21 ms
6,944 KB
testcase_10 AC 21 ms
6,944 KB
testcase_11 AC 18 ms
6,940 KB
testcase_12 AC 17 ms
7,616 KB
testcase_13 AC 3 ms
6,944 KB
testcase_14 AC 7 ms
6,944 KB
testcase_15 AC 6 ms
6,944 KB
testcase_16 AC 2 ms
6,944 KB
testcase_17 AC 6 ms
6,944 KB
testcase_18 AC 6 ms
6,944 KB
testcase_19 AC 4 ms
6,948 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#define MD 998244353
ll@n;
Polynomial<Mint>a;
a.change(0,25);
a.change(1,1);
//a**=n; // dekinai
Polynomial<Mint>r=Mint(1);
for(ll b=n;b;b>>=1){
	if(b&1){
		r*=a;
	}
	a*=a;
}
Mint z;
rep(i,n+1){
	z+=i/3*r.coef(i);
}
wt(z);
0