GSMATRIX SPOJ Help Needed
It would be great if someone can help me with GSMATRIX problem on spoj GSMATRIX