help me plzzz getting wa!!!note : using scanf("%c",&ch) again and again to remove '\n' and ' ' from input tried alomost all casesfailed at judge 2HELP !!
:::>>GOT AC
Take a look at this test case:
2 2 10 ALLIZZWELL AAAAAAAAAA 2 10 BLLIZZWELL BBBBBBBBBB
THANKS bro!! I forgot to empty the queue after each test case !! silly
hey…i am also getting wa at the 2nd test case…could you please help to sort it out???..