#include #include using namespace std; int m[105][105]; int main(){ int x1, y1, x2, y2, x3, y3; int i, k, xm, ym, xM, yM; int N, W, H, r; scanf("%d %d", &H, &W); r=H*W; scanf("%d", &N); for(i=0;i