initial commit
This commit is contained in:
parent
15fc07a155
commit
0ce6643b6a
23
41A Translation/41A.cpp
Normal file
23
41A Translation/41A.cpp
Normal file
@ -0,0 +1,23 @@
|
||||
#include<bits/stdc++.h>
|
||||
using namespace std;
|
||||
using ll = long long;
|
||||
|
||||
void solve()
|
||||
{
|
||||
string s,rs,t;
|
||||
cin>>s>>t;
|
||||
reverse(s.begin(),s.end());
|
||||
if(s==t) cout<<"YES"<<endl;
|
||||
else cout<<"NO"<<endl;
|
||||
}
|
||||
|
||||
int main()
|
||||
{
|
||||
ios_base::sync_with_stdio(false);
|
||||
cin.tie(nullptr);
|
||||
|
||||
int TC = 1;
|
||||
//cin >> TC;
|
||||
//cin.ignore();
|
||||
while (TC--) solve();
|
||||
}
|
Loading…
Reference in New Issue
Block a user