mirror of
https://github.com/theoludwig/programming-challenges.git
synced 2025-05-18 12:02:53 +02:00
feat(solutions): add find-closest-number/python/function
This commit is contained in:
@ -6,7 +6,7 @@ next(sys.stdin)
|
||||
for line in sys.stdin:
|
||||
quantity_per_cake, quantity_available = list(map(int, line.split(' ')))
|
||||
cake_possible = quantity_available // quantity_per_cake
|
||||
if maximum_number_of_cake_possible == None or cake_possible < maximum_number_of_cake_possible:
|
||||
if maximum_number_of_cake_possible is None or cake_possible < maximum_number_of_cake_possible:
|
||||
maximum_number_of_cake_possible = cake_possible
|
||||
|
||||
print(maximum_number_of_cake_possible)
|
||||
|
Reference in New Issue
Block a user