mirror of
https://github.com/theoludwig/programming-challenges.git
synced 2024-11-09 22:08:58 +01:00
13 lines
422 B
Python
13 lines
422 B
Python
import sys
|
|
|
|
maximum_number_of_cake_possible = None
|
|
|
|
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:
|
|
maximum_number_of_cake_possible = cake_possible
|
|
|
|
print(maximum_number_of_cake_possible)
|