R=[map(int,raw_input().split()) for i in ' '*10];print max(map(sum,R+map((lambda *r:r),*R))) Mike 22nd October, 2009 11:47 (UTC)

Map input lines into a lists of lists of ints. Append transposed version. Print the greatest row sum.

93 bytes