WA TAEDITOR

Can somebody please give me a test case for which I am getting WA?
My code is-http://www.codechef.com/viewsolution/4390503

Same here: http://www.codechef.com/viewsolution/4392270

try this

input:
11

  • 0 sobcy
    ? 3 1
    ? 4 1
  • 5 sub
    ? 7 1
    ? 7 1
  • 4 zwnjd
  • 6 bqf
    ? 5 4
    ? 15 1
  • 5 uq

output:
b
c
u
u
zwbq
u

1 Like