結果
| 問題 |
No.1580 I like Logarithm!
|
| コンテスト | |
| ユーザー |
nok0
|
| 提出日時 | 2021-07-02 21:42:53 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 189 bytes |
| コンパイル時間 | 164 ms |
| コンパイル使用メモリ | 82,048 KB |
| 実行使用メモリ | 65,408 KB |
| 最終ジャッジ日時 | 2024-06-29 11:13:48 |
| 合計ジャッジ時間 | 3,359 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 6 |
| other | AC * 11 RE * 28 |
ソースコード
mod = int(1e9 + 7)
a = int(input())
b = int(input())
x = 0
for v in str(b):
x *= a
x += int(v)
i = a
res = 0
while i <= x:
res += x - i + 1
res %= mod
i *= a
print(res)
nok0