We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Number Line Jumps
- Discussions
Number Line Jumps
Number Line Jumps
Sort by
recency
|
119 Discussions
|
Please Login in order to post a comment
def kangaroo(x1, v1, x2, v2):
Python
a little bad task description, because real constraints x1 < x2, but in the task example they analyze situation with x1 > x2, why?
def kangaroo(x1, v1, x2, v2): for i in range(1,10000): x1+=v1 x2+=v2 if x1==x2: return "YES" return "NO"