!!!注意
这次只是出于个人兴趣做的
a=input()
path=["","",""]
if a=='3'://3条路径
for k in range(3)://输入
up_speed=int(input())
dp_speed=int(input())
np_speed=int(input())
up=int(input())
dp = int(input())
np = int(input())
path[k]=str(up/up_speed+dp/dp_speed+np/np_speed)
if path[1]>path[2]://判断
if path[1]>path[3]:
print(path[1])
elif int(path[1])<int(path[3]):
print(path[3])
else:
if path[2]>path[3]:
print(path[2])
elif int(path[2])<int(path[3]):
print(path[3])
if a == '2'://2条路径
for k in range(2):
up_speed = int(input())
dp_speed = int(input())
np_speed = int(input())
up = int(input())
dp = int(input())
np = int(input())
path[k]= str(up / up_speed + dp / dp_speed + np / np_speed)
if path[1] > path[2]://判断
print(path[1])
else:
print(path[2])