Variant 7.8.1. The cells of a $50 \times 50$ table are colored in $n$ colors such that for any cell, the union of its row and column contains cells of all $n$ colors. Find the maximum possible number of blue cells if

(a) (1 point) $n=2$;

(b) (3 points) $n=25$.
Answer: (a) 2450. (b) 1300.