<s> """<STR_LIT>""" <EOL> __author__ = '<STR_LIT>' <EOL> class Solution : <EOL> def replaceBlank ( self , string , length ) : <EOL> """<STR_LIT>""" <EOL> i = <NUM_LIT:0> <EOL> while i < length : <EOL> if string [ i ] == "<STR_LIT:U+0020>" : <EOL> string . append ( "<STR_LIT>" ) <EOL> string . append ( "<STR_LIT>" ) <EOL> length += <NUM_LIT:2> <EOL> for j in xrange ( length - <NUM_LIT:1> , i , - <NUM_LIT:1> ) : <EOL> string [ j ] = string [ j - <NUM_LIT:2> ] <EOL> string [ i : i + <NUM_LIT:3> ] = list ( "<STR_LIT>" ) <EOL> i += <NUM_LIT:2> <EOL> i += <NUM_LIT:1> <EOL> return length <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> assert Solution ( ) . replaceBlank ( list ( "<STR_LIT>" ) , <NUM_LIT> ) == <NUM_LIT> </s>
