Advertisement
fodro

Untitled

Aug 19th, 2019
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1.  
  2. n, a, b = map(int, input().split())
  3. x = 0
  4. for i in range(1, n):
  5. x = max(x, min(a // i, b // (n - i)))
  6. print(x)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement