Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Nov 25th, 2017
64
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.24 KB
| None
|
0
0
raw
download
clone
embed
print
report
def solution(X, Y, D):
# write your code in Python 3.6
init_count = ((Y-X)//D)
total_d = 0
while True:
total_d = D*init_count
if (total_d+X) >= Y:
break
init_count += 1
return init_count
Add Comment
Please,
Sign In
to add comment
Public Pastes
Untitled
JSON | 20 min ago | 0.02 KB
Database opencomputer
Lua | 22 min ago | 21.34 KB
is_mounted
Python | 26 min ago | 3.69 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🎁
GetText | 40 min ago | 0.38 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 43 min ago | 0.39 KB
yt_transcriber
Python | 53 min ago | 6.53 KB
Untitled
PowerShell | 1 hour ago | 0.66 KB
Untitled
JSON | 2 hours ago | 0.03 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!