fork download
  1. #include <iostream>
  2. #include <string>
  3.  
  4. int main()
  5. {
  6. std::string a, b;
  7. std::getline(std::cin, a);
  8. for(std::string::size_type i = 0; i < a.size(); ++i)
  9. {
  10. if(a[i] != 'R' && a[i] != 'r')
  11. {
  12. b += a[i];
  13. }
  14. }
  15. std::cout << b << std::endl;
  16. }
Success #stdin #stdout 0.02s 2816KB
stdin
Yarr, THAR be really scary.
stdout
Ya, THA be eally scay.