fork download
  1. #include <stdio.h>
  2. #include <ctype.h>
  3.  
  4. int main(){
  5. int o;
  6. scanf("%d", &o);
  7.  
  8. char str[3001];
  9. o++;
  10.  
  11. for(int i = 0; i < o; i++){
  12. scanf("%c", &str[i]);
  13. }
  14.  
  15. char special[5] = {'@', '!', '^', '#', '*'};
  16. char key[5] = {'a', 'i', 'u', 'e', 'o'};
  17. for(int l = 0; l < o; l++){
  18. for(int j = 0; j < 5; j++){
  19. if(str[l] == special[j]){
  20. str[l] = key[j];
  21. break;
  22. }
  23. }
  24. }
  25.  
  26. for(int i = 0; i < o; i++){
  27. str[i] = tolower(str[i]);
  28. }
  29.  
  30. // h u t n u r a m a l h a l e t m a l a g n n a a j a r e k
  31. // 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2
  32. char new_str[3001];
  33. for(int i = 0; i < o; i++){
  34. new_str[i] = str[o-i-1];
  35. }
  36.  
  37. for(int i = 0; i < o; i++){
  38. printf("%c", new_str[i]);
  39. }
  40. return 0;
  41. }
  42.  
Success #stdin #stdout 0s 5316KB
stdin
41
g*d yzAl #ht r#v* spmUj x*f nw*rb kcI^Q @
stdout
a quick brown fox jumps over the lazy dog