#include #include using namespace std; #define NMAX 100 int main(){ int W,H,N; int S[NMAX],K[NMAX]; int smallmap[NMAX][NMAX]; vector Sv,Kv; cin>>W>>H>>N; for(int i=0;i>S[i]>>K[i]; bool f=false; for(int j=0;j