結果
| 問題 | No.1620 Substring Sum | 
| コンテスト | |
| ユーザー |  nok0 | 
| 提出日時 | 2021-05-29 12:38:38 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                WA
                                 
                            (最新) 
                                AC
                                 
                            (最初) | 
| 実行時間 | - | 
| コード長 | 158 bytes | 
| コンパイル時間 | 200 ms | 
| コンパイル使用メモリ | 82,912 KB | 
| 実行使用メモリ | 68,368 KB | 
| 最終ジャッジ日時 | 2024-07-17 15:09:18 | 
| 合計ジャッジ時間 | 4,309 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 1 WA * 1 | 
| other | AC * 4 WA * 16 | 
ソースコード
s = input()
n, res, mod = len(s), 0, 10 ** 9 + 7
for i in range(n):
    res += pow(11, n - 1 - i, mod) * pow(2, i, mod) * int(s[i])
    res %= mod
print(res)
            
            
            
        