結果
| 問題 | No.1620 Substring Sum |
| コンテスト | |
| ユーザー |
nok0
|
| 提出日時 | 2021-05-29 12:38:38 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 158 bytes |
| 記録 | |
| コンパイル時間 | 223 ms |
| コンパイル使用メモリ | 95,596 KB |
| 実行使用メモリ | 84,068 KB |
| 最終ジャッジ日時 | 2026-08-15 16:26:44 |
| 合計ジャッジ時間 | 3,732 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)
nok0