#include <iostream> #include <string> #include <algorithm> //reverse using namespace std; int main() { int n = 0; cin >> n; string s; cin>> s; reverse(s.begin(), s.end()); cout << s << endl; }
#include <iostream> #include <string> #include <algorithm> //reverse using namespace std; int main() { int n = 0; cin >> n; string s; cin>> s; reverse(s.begin(), s.end()); cout << s << endl; }