不会用map建立检查顺序,就直接简单粗暴写逻辑检验 #include <bits/stdc++.h> using namespace std; #define inf 0x3f3f3f3f #define int long long /* run this program using the console pauser or add your own getch, system("pause") or input loop */ signed main() { int t; cin>>t; while(t--) { string str; cin&...