fork download
  1. #include <iostream>
  2. #include <string>
  3. #include <vector>
  4. #include <algorithm>
  5. using namespace std;
  6.  
  7. int main() {
  8. vector <int> f;
  9. vector <int> k;
  10. int a, b;
  11. cin >> a >> b;
  12. f.push_back(a);
  13. f.push_back(b);
  14. k.push_back(b);
  15. k.push_back(a);
  16. reverse(f.begin(), f.end());
  17. if(f == k)cout << "rf";
  18. return 0;
  19. }
Success #stdin #stdout 0.01s 5280KB
stdin
doda
stdout
rf