結果

問題 No.1325 Subsequence Score
ユーザー yuruhiyayuruhiya
提出日時 2021-01-24 13:53:22
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 77 bytes
コンパイル時間 163 ms
コンパイル使用メモリ 11,544 KB
実行使用メモリ 58,404 KB
最終ジャッジ日時 2023-08-30 21:18:52
合計ジャッジ時間 11,295 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
15,004 KB
testcase_01 AC 77 ms
15,152 KB
testcase_02 AC 76 ms
15,112 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 78 ms
15,064 KB
testcase_07 WA -
testcase_08 AC 76 ms
15,180 KB
testcase_09 AC 77 ms
15,060 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 713 ms
58,292 KB
testcase_14 WA -
testcase_15 AC 609 ms
52,820 KB
testcase_16 AC 687 ms
57,848 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 730 ms
58,240 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 720 ms
58,192 KB
testcase_24 AC 715 ms
58,280 KB
testcase_25 AC 717 ms
58,404 KB
testcase_26 AC 721 ms
58,352 KB
testcase_27 AC 716 ms
58,360 KB
testcase_28 AC 77 ms
15,196 KB
testcase_29 AC 76 ms
15,068 KB
testcase_30 AC 76 ms
15,092 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n=gets.to_i
M=998244353
i=0
p gets.split.sum{2.pow(n,M)*_1.to_i*(-~i+=1)/4}%M
0