解析 字符串操作,本题解采取了多关键词排序 Code #include <bits/stdc++.h> using namespace std; int f, n; struct node { int y, r; string s; }a[100005]; int cmp (node x, node y) { if (x.y != y.y) return x.y < y.y;