用一个布尔变量表示改写器相位:false 为休眠,true 为唤醒,初始休眠。
从左到右扫描每个字符:
给定一个长度为 n、仅由大小写英文字母组成的字符串 s(下标从 1 开始)。你有一台改写器,具有休眠与唤醒两种相位,初始为休眠。
按下标从小到大依次处理每个字符:
请输出处理完成后的字符串。
By signing up a CodeFun2000 universal account, you can submit code and join discussions in all online judging services provided by us.