Successful solution for Partial Matrices problem - http://www.codechef.com/APRIL14/problems/CNPIIM