Result

AC

Duration

790ms

Code [DL]

x;main(c){for(;~(c=getchar());putchar(c|=x<1))x=c&4?0:-~x%51-c%2*51;}

stdin

          T                                       
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
      K                                           

stdout

          U                                       
          !                                       
          !                                       
          !                                       
          !                                       
          !                                       
          !                                       
          !                                       
          !                                       
          !                                       
          !                                       
          !                                       
          !                                       
          !                                       
          !                                       
          !                                       
          !                                       
          !                                       
          !                                       
          !                                       
          !                                       
          !                                       
          !                                       
          !                                       
          !                                       
          !                                       
          !                                       
          !                                       
          !                                       
          !                                       
          !                                       
          !                                       
          !                                       
          !                                       
          !                                       
          !                                       
      K!!!!                                       

stderr

/tmp/code.c:1:1: warning: data definition has no type or storage class
 x;main(c){for(;~(c=getchar());putchar(c|=x<1))x=c&4?0:-~x%51-c%2*51;}
 ^
/tmp/code.c:1:1: warning: type defaults to 'int' in declaration of 'x' [-Wimplicit-int]
/tmp/code.c:1:3: warning: return type defaults to 'int' [-Wimplicit-int]
 x;main(c){for(;~(c=getchar());putchar(c|=x<1))x=c&4?0:-~x%51-c%2*51;}
   ^~~~
/tmp/code.c: In function 'main':
/tmp/code.c:1:3: warning: type of 'c' defaults to 'int' [-Wimplicit-int]
/tmp/code.c:1:20: warning: implicit declaration of function 'getchar' [-Wimplicit-function-declaration]
 x;main(c){for(;~(c=getchar());putchar(c|=x<1))x=c&4?0:-~x%51-c%2*51;}
                    ^~~~~~~
/tmp/code.c:1:20: note: 'getchar' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
+#include <stdio.h>
 x;main(c){for(;~(c=getchar());putchar(c|=x<1))x=c&4?0:-~x%51-c%2*51;}
                    ^~~~~~~
/tmp/code.c:1:31: warning: implicit declaration of function 'putchar' [-Wimplicit-function-declaration]
 x;main(c){for(;~(c=getchar());putchar(c|=x<1))x=c&4?0:-~x%51-c%2*51;}
                               ^~~~~~~

strace