0
已解决
董宇昊
初级启示者
初级启示者
#include<iostream>
#include<cmath>
using namespace std;
int main() {
int i = 0;
string s;
string a[101], b[101];
for(int j=1;j<=100;j++){
cin >> s;
a[i] = b[i] = s;
i++;
}
int k = i;
for (int j = 1; j <= k; j++) {
if (a[j] == b[i]) {
cout << "No";
return 0;
}
i--;
}
cout << "Yes";
return 0;
}
求思路