#include<iostream> #include<vector> using namespace std; int main(){ int n,m; cin>>n>>m; vector<vector<char>>p(n+2,vector<char>(m+2,'0')); vector<vector<char>>k(n+2,vector<char>(m+2)); for(int i=1;i<=n;i++) { ...