#include #include #include using namespace std; vector> calcLine(int h,int w,int x1,int y1,int x2,int y2){ vector> vp; if(x1>x2){ int xt=x2; x2=x1; x1=xt; int yt=y2; y2=y1; y1=yt; } if(x1==x2){ for(int i=0;i>h>>w; int x1=-1,y1=-1,x2=-1,y2=-1; for(int i=0;i>s; for(int j=0;j> vp=calcLine(h,w,x1,y1,x2,y2); vector> vv(h,vector(w)); vv[y1][x1]=1; vv[y2][x2]=1; for(int i=0;i