Problem B. Kiki & Little Kiki 2
时间限制 1000 ms
内存限制 32 MB
There are n lights in a circle numbered from 1 to n. The left of light 1 is light n, and the left of light k (1< k<= n) is the light k-1.At time of 0, some of them turn on, and others turn off.
Change the state of light i (if it's on, turn off it; if it is not on, turn on it) at t+1 second (t >= 0), if the left of light i is on !!! Given the initiation state, please find all lights’ state after M second. (2<= n <= 100, 1<= M<= 10^8)
输入数据
输出数据
For each data set, output all lights' state at m seconds in one line. It only contains character '0' and '1.
样例输入
复制
1
0101111
10
100000001
样例输出
$ Mathjax font initiator $