#include #include #include using namespace std; int main() { vector guardX; vector guardY; vector problemX; vector problemY; vector steps; int coGuards; int coProblems; int pom; cin >> coGuards; cin >> coProblems; for(int i=0;i> pom; guardX.push_back(pom); cin >> pom; guardY.push_back(pom); } for(int i=0;i> pom; problemX.push_back(pom); cin >> pom; problemY.push_back(pom); } int pomX; int pomY; for(int j=0;jpomY) { if(i==0) { steps.push_back(pomX); } else { if(pomXpomX) { if(i==0) { steps.push_back(pomY); } else { if(pomY