180 人解决,287 人已尝试。
218 份提交通过,共有 1343 份提交。
3.8 EMB 奖励。
单点时限: 2.0 sec
内存限制: 512 MB
George is a painter.
Now there is a wall divided into
At the beginning,
Next, George will give you
Can you answer his questions quickly and accurately?
The first line contains two positive integers
The next
Input three integers
Input an integer,
For each operation, output one line, which contains an integer, indicating the answer.
5 3 2 1 2 1 2
1 2
5 6 1 2 1 2 1 4 2 2 1 1 3 2
2 2 3
Sample 2 Explanation:
After the first painting, the color of the
00011
After the second painting of the wall, the color of the
02222
After the third painting of the wall, the color of the
02223
180 人解决,287 人已尝试。
218 份提交通过,共有 1343 份提交。
3.8 EMB 奖励。
创建: 3 年,4 月前.
修改: 3 年,4 月前.
最后提交: 1 年,6 月前.
来源: N/A