Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Oct 15th, 2019
179
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Python
0.21 KB
| None
|
0
0
raw
download
clone
embed
print
report
n
,
b1
,
q
,
MAX
=
map
(
int
,
input
(
)
.
split
(
)
)
if
q
==
1
:
print
(
MAX // b1
)
else
:
res
=
n
for
i
in
range
(
1
,
n +
1
)
:
if
b1 *
(
q ** i -
1
)
/
(
q -
1
)
<=
MAX:
res
=
i
print
(
res
)
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
bs.to css 2.0
6 hours ago | 5.49 KB
z66is_archive.zip.txt
11 hours ago | 10.69 KB
simple mineing
Lua | 16 hours ago | 5.29 KB
minecraft_cc_tweek_mineing_ws
Lua | 19 hours ago | 9.70 KB
minecraft_cc_tweek_mineing
Lua | 20 hours ago | 4.12 KB
Answering Concerns About City/State in Semant...
1 day ago | 0.90 KB
Switching Location for Geo Semantic Seed Rele...
1 day ago | 1.06 KB
Asking IM to Provide City and State for Seman...
1 day ago | 1.30 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!