結果

問題 No.1325 Subsequence Score
ユーザー tailstails
提出日時 2020-12-22 00:28:35
言語 cLay
(20240104-1)
結果
AC  
実行時間 78 ms / 2,000 ms
コード長 145 bytes
コンパイル時間 2,251 ms
コンパイル使用メモリ 172,112 KB
実行使用メモリ 6,404 KB
最終ジャッジ日時 2023-09-19 01:59:00
合計ジャッジ時間 5,030 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,376 KB
testcase_01 AC 1 ms
4,376 KB
testcase_02 AC 2 ms
4,380 KB
testcase_03 AC 1 ms
4,376 KB
testcase_04 AC 2 ms
4,384 KB
testcase_05 AC 2 ms
4,376 KB
testcase_06 AC 1 ms
4,376 KB
testcase_07 AC 2 ms
4,380 KB
testcase_08 AC 1 ms
4,380 KB
testcase_09 AC 2 ms
4,376 KB
testcase_10 AC 1 ms
4,376 KB
testcase_11 AC 1 ms
4,376 KB
testcase_12 AC 1 ms
4,380 KB
testcase_13 AC 75 ms
6,296 KB
testcase_14 AC 21 ms
4,796 KB
testcase_15 AC 64 ms
5,988 KB
testcase_16 AC 72 ms
6,208 KB
testcase_17 AC 32 ms
5,144 KB
testcase_18 AC 18 ms
5,096 KB
testcase_19 AC 76 ms
6,404 KB
testcase_20 AC 11 ms
4,376 KB
testcase_21 AC 26 ms
5,288 KB
testcase_22 AC 33 ms
5,140 KB
testcase_23 AC 77 ms
6,316 KB
testcase_24 AC 77 ms
6,348 KB
testcase_25 AC 77 ms
6,212 KB
testcase_26 AC 77 ms
6,320 KB
testcase_27 AC 78 ms
6,244 KB
testcase_28 AC 1 ms
4,380 KB
testcase_29 AC 2 ms
4,380 KB
testcase_30 AC 2 ms
4,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#define MD 998244353

int n,a[5d5];
Mint v=1,w=1,z;
{
	rd(n,a(n));
	rep(i,n){
		z+=a[i]*w*Mint(2)**(n-1-i);
		w+=w;
		w+=v;
		v+=v;
	}
	wt(z);
}
0