結果

問題 No.1620 Substring Sum
ユーザー yuruhiyayuruhiya
提出日時 2021-07-22 22:20:05
言語 Ruby
(3.3.0)
結果
AC  
実行時間 1,508 ms / 2,000 ms
コード長 82 bytes
コンパイル時間 301 ms
コンパイル使用メモリ 11,168 KB
実行使用メモリ 32,640 KB
最終ジャッジ日時 2023-09-24 17:29:26
合計ジャッジ時間 23,760 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
15,148 KB
testcase_01 AC 81 ms
15,032 KB
testcase_02 AC 81 ms
15,244 KB
testcase_03 AC 81 ms
15,128 KB
testcase_04 AC 1,455 ms
31,540 KB
testcase_05 AC 1,508 ms
31,252 KB
testcase_06 AC 1,420 ms
31,348 KB
testcase_07 AC 1,434 ms
31,456 KB
testcase_08 AC 1,389 ms
31,492 KB
testcase_09 AC 1,383 ms
31,672 KB
testcase_10 AC 1,431 ms
31,440 KB
testcase_11 AC 1,422 ms
31,472 KB
testcase_12 AC 514 ms
19,888 KB
testcase_13 AC 1,308 ms
32,084 KB
testcase_14 AC 1,357 ms
31,836 KB
testcase_15 AC 1,164 ms
32,640 KB
testcase_16 AC 862 ms
24,512 KB
testcase_17 AC 1,147 ms
32,464 KB
testcase_18 AC 83 ms
15,140 KB
testcase_19 AC 78 ms
15,116 KB
testcase_20 AC 1,375 ms
31,904 KB
testcase_21 AC 1,441 ms
31,316 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

i=0;p gets.chop.chars.sum{2.pow(i,M=998244353)*11.pow($_.size-1-i+=1,M)*_1.to_i}%M
0