#include #include #include #include #include using namespace std; typedef vector< long long > V1L; typedef vector< V1L > V2L; typedef vector< V2L > V3L; typedef vector< V3L > V4L; typedef vector VLL; typedef vector< VLL > VVLL; const long long INF = numeric_limits::max(); long long getmin_of_maxes(int a, int b, int n, int m, vector< vector > &v) { VVLL temp(n,VLL(m)); for(int i=0;i &t = v[i]; deque dq; for(int j=0;j dq; for(int i=0;i>d1>>d2>>d3>>d4; int a,b,c,d; cin>>a>>b>>c>>d; V4L v(d1,V3L(d2,V2L(d3,V1L(d4)))); for(int i=0; i>v[i][j][k][l]; VVLL p(d1,VLL(d2)); for(int i=0; i