Even the test cases of this problem are weak … check out my submission ,it passes without appending string B… (i.e; it passes directly by finding prefix of A in B)
solution link : http://www.codechef.com/viewsolution/4396688
Even the test cases of this problem are weak … check out my submission ,it passes without appending string B… (i.e; it passes directly by finding prefix of A in B)
solution link : http://www.codechef.com/viewsolution/4396688