有没有大佬康康为什么只过了45啊 #include <iostream> #include <stack> using namespace std; int main() { int t; int jud = 1; cin >> t; while (t--) { stack<string>s; int n; jud = 1; string temp,temp2; cin >> n; for (int i = 0; i < n; i++) { cin >> temp; if (temp != "end") { s.push(temp); } else if(temp=="end") { cin >> temp2; if (!s.empty()&&temp2 == s.top()) { s.pop(); } else { jud = 0; break; } } } if (jud == 1&&s.empty()) { cout << "Yes"<</string></stack></iostream>