Problem: http://uva.onlinejudge.org/external/5/541.html

Basic Idea: calculate the sum of each row and each column respectively. If found any more than two row/column has an odd sum, or one row has odd sum, but all column have even sum, then it's corrupted; if one row & one column has old sum, then the point on that row/column is to be changed. Otherwise it would be correct

ACed Code: