def usecase1(arr1, arr2):
 n1 = arr1.size
 n2 = arr2.size
 for i1 in range(n1):
  st1 = arr1[i1]
  for i2 in range(n2):
   st2 = arr2[i2]
   st2.row += (((st1.p * st2.p) + st1.row) - st1.col)
  st1.p += st2.p
  st1.col -= st2.col

def usecase1 ( arr1 , arr2 ) : n1 = arr1 . size n2 = arr2 . size for i1 in range ( n1 ) : st1 = arr1 [ i1 ] for i2 in range ( n2 ) : st2 = arr2 [ i2 ] st2 . row += ( ( ( st1 . p * st2 . p ) + st1 . row ) - st1 . col ) st1 . p += st2 . p st1 . col -= st2 . col
base on URL modified to add test-able side effect .