#include using namespace std; typedef long long ll; vector> rot90(vector> v) { vector> nv(v[0].size(),vector(v.size())); for (int i=0;i>r>>k>>h>>w; vector> c(h,vector(w)); for (int i=0;i>c[i][j]; for (int i=0;i