#include <iostream> #include <vector> #include <algorithm> using namespace std; int main() { int n; //蚂蚁个数 cin >> n; vector<int> point(n), speed(n); //分别记录蚂蚁的位置和移动方向 for (int i = 0; i < n; ++i) { cin >> point[i] >> speed[i]; } //1、找到初始静止的蚂蚁位置 int index; f...