#include<bits/stdc++.h> using namespace std; int main() { int n,m,k; cin>>n>>m>>k; vector<vector<int>> a(n + 1, vector<int>(m + 1, 0)); int flag=min(m,n); if(k<max(n,k)) { cout<<-1<<endl; return 0; ...