#include const int MAX = 128; int A[MAX][MAX]; int S,C; void Calc() { int y,x; for(y=1;y=0;y--) for(x=1;x