• + 0 comments

    Isn't the expected output of the sample test case wrong?

    Input (stdin): 1 abc, 3 3, 2 3, 1 xy, 3 2, 3 1

    The data contents should be: 1 abc => abc 3 3 => print c 2 3 => deleted abc 1 xy => xy 3 2 => print y 3 1 => print x (not a)