24 lines
357 B
C
24 lines
357 B
C
|
#include <stdio.h>
|
||
|
int main() {
|
||
|
int c;
|
||
|
while ((c=getchar()) != EOF){
|
||
|
if (c == '\t'){
|
||
|
putchar('\\');
|
||
|
putchar('t');
|
||
|
continue;
|
||
|
}
|
||
|
if (c == '\b'){
|
||
|
putchar('\\');
|
||
|
putchar('b');
|
||
|
continue;
|
||
|
}
|
||
|
if (c == '\\'){
|
||
|
putchar('\\');
|
||
|
putchar('\\');
|
||
|
continue;
|
||
|
}
|
||
|
putchar(c);
|
||
|
}
|
||
|
return 0;
|
||
|
}
|