import random
massiv=[[random.randint(1,100) for i in range(10)] for z in range(10)]
print(massiv)
res=0
for i in massiv:
for z in i:
res+=z**2
print(res)
import random
massiv=[[random.randint(1,100) for i in range(10)] for z in range(10)]
print(massiv)
res=0
for i in massiv:
for z in i:
res+=z**2
print(res)