Result

WA

Duration

1357ms

Code [DL]

IFS= read -r a
while IFS= read -r b
do
	echo "$a"
done
echo "$a"
c=`echo "$a"|sed -r 's/T.+$/T/'`
d=`echo "$b"|sed -r 's/K.+$/K/'`
printf "$d"

stdin

                          T                       
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
      K                                           

stdout

                          T                       
                          T                       
                          T                       
                          T                       
                          T                       
                          T                       
                          T                       
                          T                       
                          T                       
                          T                       
                          T                       
                          T                       
                          T                       
                          T                       
                          T                       
                          T                       
                          T                       
                          T                       
                          T                       
                          T                       
                          T                       
                          T                       
                          T                       
                          T                       
                          T                       
                          T                       
                          T                       

stderr

strace