結果
問題 |
No.1620 Substring Sum
|
ユーザー |
![]() |
提出日時 | 2025-02-06 22:24:53 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 57 ms / 2,000 ms |
コード長 | 161 bytes |
コンパイル時間 | 1,664 ms |
コンパイル使用メモリ | 82,344 KB |
実行使用メモリ | 68,108 KB |
最終ジャッジ日時 | 2025-02-06 22:25:18 |
合計ジャッジ時間 | 3,525 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 20 |
ソースコード
MOD = 998244353 S = [int(s) for s in input()] N = len(S) ans = 0 n = 1 for s in S: ans += ans * 10 + s * n n *= 2 ans %= MOD n %= MOD print(ans)