Problem

Source: Tournament of towns 2011

Tags: matrix, combinatorics



In every cell of a square table is a number. The sum of the largest two numbers in each row is $a$ and the sum of the largest two numbers in each column is b. Prove that $a = b$.