Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- n = int(input())
- q = [int(i) for i in input().split()]
- c = [int(i) for i in input().split()]
- X = int(input())
- money = [c[i] * q[i] for i in range(n)]
- print(money.index(sorted(money)[X - 1]) + 1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement