- 1#include 2 using namespace std;
- 3 int main() 4 {
- 5 string s,
- t;
- 6
- while (cin >> s >> t) 7 {
- 8 reverse(t.begin(), t.end());
- 9 printf("%s\n", s == t ? "YES": "NO");
- 10 s.clear(),
- t.clear();
- 11
- }
- 12 13
- }
来源: http://www.bubuko.com/infodetail-1989714.html