Find if there is matrix that satisfying the following conditions
Hint #1:


   This can be solved with network flow.


Hint #2:


   Imagine $r_i$ units of flow entering the $i$th row, and $c_j$ units of flow leaving the $j$th column.  Does that give you any hints how to set up the graph for a network flow problem?