結果

問題 No.1620 Substring Sum
ユーザー AEn
提出日時 2023-01-18 02:00:34
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 224 ms / 2,000 ms
コード長 144 bytes
コンパイル時間 396 ms
コンパイル使用メモリ 82,376 KB
実行使用メモリ 66,432 KB
最終ジャッジ日時 2025-01-03 12:33:39
合計ジャッジ時間 5,110 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

S = input()
N = len(S)
mod = 998244353

res = 0
for i in range(N):
    res += int(S[i])*pow(2,i,mod)*pow(11,N-i-1,mod)
    res %= mod
print(res)
0