fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. char cypher(char &c);
  5.  
  6. int main(){
  7. string input;
  8. while(getline(cin, input)){
  9. int len = input.length();
  10. for(int i=0;i<len;i++){
  11. cypher(input[i]);
  12. }
  13. cout << input << endl;
  14. }
  15.  
  16. return 0;
  17. }
  18.  
  19. char cypher(char &c){
  20. c = ((c >= 33 && c <= 79)) ? c+46 : ((c >= 80 && c <= 125)) ? c-46 : c;
  21. }
Success #stdin #stdout 0s 3432KB
stdin
&:7 s@D;5:?7@F q7@F7D ;E 5A??;FF76 FA F:7 I7>> 47;@9 A8 3>> B3DF;5;B3@FE\ 
q3=7 3@6 9D;78 5AG@E7>;@9 I;>> 47 3H3;>34>7 3F F:7 5A@5>GE;A@ A8 F:7 F7EF\ 
&:3@= KAG 8AD :7>B;@9 GE :7>B KAG :7>B GE 3>>\
stdout
The Enrichment Center is committed to the well being of all participants. 
Cake and grief counseling will be available at the conclusion of the test. 
Thank you for helping us help you help us all.