n=int(input())
height = input().split()
weight = input().split()
arr1 = []
for i in range(n):
arr1.append(((int(height[i]),int(weight[i])),i+1))
def sorted_by_length_weight(x):
return x[0][0],x[0][1]
arr2=sorted(arr1, key=sorted_by_length_weight)
print(" ".join(str(x) for x in list(tuple(i[1] for i in arr2))))
回复到我帖子下

