#define _CRT_SECURE_NO_WARNINGS #include <iostream> #include <map> #include<vector> #include<algorithm> #include <iostream> #include <vector> #include <cmath> #include <string.h> #include <stack> using namespace std; int main() { int m, n, k; cin >> m >> n >> k; for (int j = 0; j < k; j++) { stack<int> s; vector<int> v(n+1); for (int i = 1; i <= n; i++) { scanf("%d", v[i]); } int current = 1; for (int i = 1; i <= n; i++) { s.push(i); if(!s.empty()&&s.top()) } } }