結果

問題 No.1620 Substring Sum
ユーザー googol_S0googol_S0
提出日時 2021-07-22 21:32:16
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 166 ms / 2,000 ms
コード長 111 bytes
コンパイル時間 1,065 ms
コンパイル使用メモリ 87,040 KB
実行使用メモリ 76,780 KB
最終ジャッジ日時 2023-09-24 15:53:58
合計ジャッジ時間 5,138 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
71,204 KB
testcase_01 AC 74 ms
71,204 KB
testcase_02 AC 74 ms
71,380 KB
testcase_03 AC 75 ms
71,276 KB
testcase_04 AC 164 ms
76,672 KB
testcase_05 AC 164 ms
76,336 KB
testcase_06 AC 166 ms
76,640 KB
testcase_07 AC 164 ms
76,636 KB
testcase_08 AC 164 ms
76,504 KB
testcase_09 AC 160 ms
76,620 KB
testcase_10 AC 164 ms
76,616 KB
testcase_11 AC 160 ms
76,528 KB
testcase_12 AC 104 ms
76,352 KB
testcase_13 AC 156 ms
76,780 KB
testcase_14 AC 158 ms
76,468 KB
testcase_15 AC 148 ms
76,508 KB
testcase_16 AC 126 ms
76,240 KB
testcase_17 AC 145 ms
76,416 KB
testcase_18 AC 75 ms
71,096 KB
testcase_19 AC 76 ms
71,292 KB
testcase_20 AC 165 ms
76,744 KB
testcase_21 AC 166 ms
76,692 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

S=input()
ANS=0
mod=998244353
for i in range(len(S)):
  ANS=ANS*11+int(S[i])*pow(2,i,mod)
  ANS%=mod
print(ANS)
0