spoj ALLIZZWELL

spoj ques:http://www.spoj.com/problems/ALLIZWEL/ somebody plzz tell me what’s wrong with my code!! plzz tell me for which test case i m getting wron answer…:http://ideone.com/d7ebXG

Here you go:

1
4 3
LAL
L.L
E.I
WZZ

This prints “No” with your program.

1 Like

Yeah but when i bug my code it show error for this test case 1
3 4
AEW.
LLIZ
LL.Z
what should i change in my code so that it get AC