Программа:
Python:
a = [int(i) for i in input('a = ').split()]
b = [int(i) for i in input('b = ').split()]
n = 0
for i in a:
n += b[a.index(i)] * i
print(n)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Verified answer
Программа:
Python:
a = [int(i) for i in input('a = ').split()]
b = [int(i) for i in input('b = ').split()]
n = 0
for i in a:
n += b[a.index(i)] * i
print(n)