fork download
  1.  
  2. #include <stdio.h>
  3.  
  4. int main(void) {
  5. int i;
  6. char s[100];
  7.  
  8. scanf("%s", s);
  9. printf("%s\n -> ", s);
  10.  
  11. // ここを編集する
  12. for (i = 0; s[i] != '\0'; i++) {
  13. if (s[i] == '1') {
  14. s[i] = 'I';
  15. }
  16. }
  17.  
  18. printf("%s\n", s);
  19. return 0;
  20. }
Success #stdin #stdout 0s 5308KB
stdin
1NFORMAT1ON
stdout
1NFORMAT1ON
  -> INFORMATION