Input Format
The first line of input consists of the number of ingredients, N
The second line of input consists of the N space-separated integers representing the quantity of each ingredient required to create a Powerpuff Girl.
The third line of input consists of the N space-separated integers representing the quantity of each ingredient present in the laboratory.
Constraints
1<= N <=10000000 (1e7)
0<= Quantity_of_ingredient <= LLONG_MAX Output Format
Print the required output in a separate line.
Answers
Answered by
6
Answer:
def main():
# Write code here
n=int(input())
list1=[int(x) for x in input().split()]
list2=[int(x) for x in input().split()]
list3=[]
for x in range(0,n):
k=list2[x]//list1[x]
list3.append(k)
print(min(list3))
main()
Explanation:
I hope this code will help u alot.Thanks
Similar questions