My code works totally fine with the testcases i've found on the board. Please anyone help me out. Why am i getting WA? Here'r my code-
Code: Select all
GOT AC
at first my initial array sizes were set based on this( array[52][52] ), i was getting RTE, then i changed it to array[100][100], started getting WA. Finally I tried submitting it with array[500][500] and got AC :-\The first line will contain two numbers x and y, followed by x lines of y characters each. (x and y are less than 50).
I had to waste an entire hour trying to find out where i went wrong. This is insane :-S