This commit is contained in:
kaoplo 2023-02-01 15:16:01 +01:00
parent e03982bc25
commit 10713a7fef
2 changed files with 23 additions and 0 deletions

BIN
quito/11.1 Executable file

Binary file not shown.

23
quito/11.1.cpp Normal file
View file

@ -0,0 +1,23 @@
#include <bits/stdc++.h>
using namespace std;
int main () {
string compare, compare2;
cin >> compare >> compare2;
if (compare.length() == compare2.length() ) {
int i2 = compare.length()-1;
for (int i = 0; i < compare.length(); i++) {
//cout<<endl;
//cout<<compare[i]<<' '<<compare2[i2]<<endl;
if (compare[i] != compare2[i2]) {
cout<<"NO";
return 0;
}
i2--;
}
cout<<"YES";
return 0;
}
cout<<"NO";
}