acmsguru |
---|
Finished |
+i means that the i-th dancer appears on the stage, the substring
-i means that the i-th dancer leaves the stage. The substring
++i means that the i-th dancer leaves while the similar (i+1)-th dancer appears, and
--i means that the i-th dancer leaves while the similar (i-1)-th dancer appears. The output will be processed from the left to the right.
sample input | sample output |
2 1 | +1++1-2 |
Name |
---|