結果

問題 No.1620 Substring Sum
ユーザー convexineqconvexineq
提出日時 2021-07-22 23:23:35
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 87 ms / 2,000 ms
コード長 104 bytes
コンパイル時間 1,136 ms
コンパイル使用メモリ 86,564 KB
実行使用メモリ 76,304 KB
最終ジャッジ日時 2023-09-24 19:37:28
合計ジャッジ時間 4,538 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,104 KB
testcase_01 AC 71 ms
71,136 KB
testcase_02 AC 73 ms
71,004 KB
testcase_03 AC 78 ms
71,064 KB
testcase_04 AC 87 ms
76,004 KB
testcase_05 AC 81 ms
76,180 KB
testcase_06 AC 81 ms
76,064 KB
testcase_07 AC 80 ms
76,144 KB
testcase_08 AC 79 ms
75,916 KB
testcase_09 AC 81 ms
76,252 KB
testcase_10 AC 81 ms
76,188 KB
testcase_11 AC 80 ms
76,288 KB
testcase_12 AC 77 ms
75,876 KB
testcase_13 AC 80 ms
76,096 KB
testcase_14 AC 81 ms
76,228 KB
testcase_15 AC 80 ms
76,112 KB
testcase_16 AC 77 ms
75,792 KB
testcase_17 AC 79 ms
75,976 KB
testcase_18 AC 71 ms
71,116 KB
testcase_19 AC 71 ms
71,144 KB
testcase_20 AC 79 ms
76,304 KB
testcase_21 AC 81 ms
76,160 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

MOD,r,p = 998244353,0,1
for i in map(int,input()):
    r = (11*r + i*p)%MOD
    p = p*2%MOD
print(r%MOD)
0