#include<bits/stdc++.h> #define py puts("YES") #define pn puts("NO") using namespace std; void solve(){ string txt; // while循环不断读入文本 while(getline(cin, txt)){ //先用一个向量存储所有的英文字母,有更优美的写法。 vector<pair<char,int>> words; int idx = 0; for(auto &ch : txt){ if(('a' ...