結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
15,024 KB
testcase_01 AC 83 ms
15,044 KB
testcase_02 AC 80 ms
15,056 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 83 ms
15,252 KB
testcase_07 WA -
testcase_08 AC 80 ms
15,056 KB
testcase_09 AC 82 ms
15,240 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 614 ms
58,304 KB
testcase_14 WA -
testcase_15 AC 531 ms
52,884 KB
testcase_16 AC 588 ms
57,696 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 626 ms
58,168 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 617 ms
58,404 KB
testcase_24 AC 614 ms
58,332 KB
testcase_25 AC 616 ms
58,420 KB
testcase_26 AC 615 ms
58,260 KB
testcase_27 AC 617 ms
58,400 KB
testcase_28 WA -
testcase_29 AC 79 ms
15,068 KB
testcase_30 AC 80 ms
15,104 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

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