結果

問題 No.1307 Rotate and Accumulate
ユーザー tailstails
提出日時 2020-12-04 09:26:51
言語 cLay
(20231016-1)
結果
AC  
実行時間 73 ms / 5,000 ms
コード長 182 bytes
コンパイル時間 4,542 ms
コンパイル使用メモリ 188,584 KB
実行使用メモリ 14,788 KB
最終ジャッジ日時 2023-09-19 01:54:38
合計ジャッジ時間 8,511 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 4 ms
7,416 KB
testcase_01 AC 4 ms
7,416 KB
testcase_02 AC 4 ms
7,360 KB
testcase_03 AC 4 ms
7,344 KB
testcase_04 AC 4 ms
7,488 KB
testcase_05 AC 4 ms
7,400 KB
testcase_06 AC 4 ms
7,560 KB
testcase_07 AC 4 ms
7,372 KB
testcase_08 AC 37 ms
10,020 KB
testcase_09 AC 38 ms
10,268 KB
testcase_10 AC 38 ms
10,504 KB
testcase_11 AC 37 ms
10,136 KB
testcase_12 AC 39 ms
10,464 KB
testcase_13 AC 9 ms
7,792 KB
testcase_14 AC 21 ms
10,096 KB
testcase_15 AC 73 ms
14,560 KB
testcase_16 AC 73 ms
14,564 KB
testcase_17 AC 73 ms
14,584 KB
testcase_18 AC 69 ms
14,448 KB
testcase_19 AC 72 ms
14,628 KB
testcase_20 AC 71 ms
14,788 KB
testcase_21 AC 5 ms
7,612 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#define MD 998244353

Mint a[2d5],b[1d5],c[2d5];

{
	int @n,@q;
	rd(a(n));
	a[n..2n-1]=a[0..];
	rep(q){
		int @r;
		b[r?n-r:0]+=1;
	}
	convolution(a,2n,b,n,c,2n);
	wt(((c+n))(n));
}
0