This commit is contained in:
BarsTiger
2021-10-15 12:46:53 +03:00
parent b9772007b3
commit 68fb5410ee
45 changed files with 729 additions and 16 deletions

View File

@@ -0,0 +1,16 @@
dlina = int(input())
a = input().split()
b = input().split()
max = 0
for i in range(dlina):
for j in range(i + 1):
if i == j:
pass
else:
resultit = int(a[i]) * int(b[j]) + int(a[j]) * int(b[i])
if resultit > max:
max = resultit
print(max)