by@satos___jp
AC
534ms
c;main(i){for(;~scanf("%c\n",&c);)printf("%c",(c-65+i++)%26+65);}
XDVXEJFNHWZUZUJKIRXUSPCHUK
YFYBJPMVQGKGMIYAZJQONLZFTK
/tmp/code.c:1:1: warning: data definition has no type or storage class c;main(i){for(;~scanf("%c\n",&c);)printf("%c",(c-65+i++)%26+65);} ^ /tmp/code.c:1:1: warning: type defaults to 'int' in declaration of 'c' [-Wimplicit-int] /tmp/code.c:1:3: warning: return type defaults to 'int' [-Wimplicit-int] c;main(i){for(;~scanf("%c\n",&c);)printf("%c",(c-65+i++)%26+65);} ^~~~ /tmp/code.c: In function 'main': /tmp/code.c:1:3: warning: type of 'i' defaults to 'int' [-Wimplicit-int] /tmp/code.c:1:17: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] c;main(i){for(;~scanf("%c\n",&c);)printf("%c",(c-65+i++)%26+65);} ^~~~~ /tmp/code.c:1:17: warning: incompatible implicit declaration of built-in function 'scanf' /tmp/code.c:1:17: note: include '<stdio.h>' or provide a declaration of 'scanf' /tmp/code.c:1:25: warning: format '%c' expects argument of type 'char *', but argument 2 has type 'int *' [-Wformat=] c;main(i){for(;~scanf("%c\n",&c);)printf("%c",(c-65+i++)%26+65);} ^ /tmp/code.c:1:35: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration] c;main(i){for(;~scanf("%c\n",&c);)printf("%c",(c-65+i++)%26+65);} ^~~~~~ /tmp/code.c:1:35: warning: incompatible implicit declaration of built-in function 'printf' /tmp/code.c:1:35: note: include '<stdio.h>' or provide a declaration of 'printf'