fork(1) download
  1. #include<stdio.h>
  2.  
  3. main()
  4. {
  5. int size;
  6. scanf("%d", &size);
  7.  
  8. char* str = malloc(size + 1);;
  9. scanf("%s", str);
  10.  
  11. for (int i=0; i<size; i++)
  12. {
  13. if (str[i]!='Z'){
  14. str[i] -= 1;
  15. }
  16.  
  17. else
  18. {
  19. str[i] -= 25;
  20. }
  21. printf("%c", str[i]);
  22. }
  23.  
  24. return 0;
  25. }
Success #stdin #stdout 0s 2304KB
stdin
10 ABCDE FEGH
stdout
@ABCD�����