結果
| 問題 |
No.1620 Substring Sum
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-01-26 06:07:48 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 49 ms / 2,000 ms |
| コード長 | 131 bytes |
| コンパイル時間 | 208 ms |
| コンパイル使用メモリ | 82,444 KB |
| 実行使用メモリ | 73,524 KB |
| 最終ジャッジ日時 | 2024-12-21 08:07:20 |
| 合計ジャッジ時間 | 2,605 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 20 |
ソースコード
MOD=998244353
S=input().rstrip()
res=0
cnt=1
for s in S:
res+=res*10+int(s)*cnt
cnt*=2
cnt%=MOD
res%=MOD
print(res)