Question 126
Each cell of a $100 \times 100$ table is colored either in black or in white, so that all columns contain equal numbers of black cells, but no two rows contain equal numbers of black cells. Determine the greatest possible number of pairs of neighboring cells whose colors are distinct. (Two cells are neighboring if they share a side.)