#include using namespace std; typedef unsigned int uint; typedef long long int ll; typedef unsigned long long int ull; #define debugv(v) printf("L%d %s => ",__LINE__,#v);for(auto e:v){cout< ",__LINE__,#m);for(int x=0;x<(w);x++){cout<<(m)[x]<<" ";}cout<>=1,k++)s=(s<<1)|(u&1);for(;0>=1)cout<<(s&1);}} #define TIME chrono::system_clock::now() #define MILLISEC(t) (chrono::duration_cast(t).count()) template ostream& operator <<(ostream &o,const pair p){o<<"("<> m; for (i=0;ip3.y){ rc =1; // rotate 1 offset = p1; zoom.x = p2.x-p4.x; zoom.y = p2.y-p4.y; }else if (p1.x>p3.x && p1.y>p3.y){ rc =2; offset = p1; zoom.x = p1.x-p3.x; zoom.y = p1.y-p3.y; }else if (p1.x>p3.x && p1.y