結果

問題 No.1620 Substring Sum
ユーザー pluto77
提出日時 2022-02-28 16:28:03
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 981 ms / 2,000 ms
コード長 142 bytes
コンパイル時間 243 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 11,264 KB
最終ジャッジ日時 2024-07-06 19:36:08
合計ジャッジ時間 15,172 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#yuki1620
mod=998244353
s=input()
res=0
for i in range(len(s)):
 x=int(s[i])
 res+=pow(11,len(s)-i-1,mod)*x*pow(2,i,mod)
 res%=mod
print(res)
0