fork download
  1. #define _CRT_SECURE_NO_WARNINGS
  2. #include <stdio.h>
  3. #include <string.h>
  4.  
  5. int main(void) {
  6. char string[101];
  7. while (gets(string) != '\0') {
  8. printf("%s", string);
  9. for (int i = 0; i < strlen(string); i++) {
  10. string[i] = '0';
  11. }
  12. }
  13. return 0;
  14. }
Success #stdin #stdout 0s 5272KB
stdin
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
stdout
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa