Regionals 2015 >> Asia - EC Final>> Multiplication Table
/*由两个点的值及相对位置求解左上角点的坐标,解的判断很麻烦,wr*/#include#include#includeusingnamespacestd;typedeflonglongll;constllM=1e9,N=1e3+10;structpoint{intx,y,v;}pq[N*N];intn,m,k;intjud(llx,lly){intx0=pq[0].x,y0=pq[0].y;for