Jovian
⭐️
Sign In
In [1]:
N= int(input())
value = []
for i in range(N):
    arr = list(map(int, input().split()))
    value.append(max(arr)**2)
print(value)
print(sum(value))
3 3 4 5 6 7 8 9 8 7 [25, 64, 81] 170
In [2]:
import jovian
In [ ]:
jovian.commit()
[jovian] Saving notebook..
In [ ]: