fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5. string s;
  6. getline(cin, s);
  7. reverse(s.begin(), s.end());
  8. cout << s;
  9. return 0;
  10. }
Success #stdin #stdout 0.01s 5280KB
stdin
ngai co lam cot phot ko
stdout
ok tohp toc mal oc iagn