11140 - Little Ali's Little Brother!
Solution Description : Array Manipulation problem Do this what is say in problem description Remember that 1. If a input piece all are dot(.) then print Yes i.e 1 2 2 1 .* *. 1 3 ... print Yes 2. Remove all dot(.) from a input piece without rectangular part of * i.e. 1 3 3 1 .** ... *** 4 4 .... .**. .... .**. after remove dot then you got ** .. ** so this piece match in board print Yes 3. Check only * for an input piece i.e 1 4 4 1 .*.. .*** .*** **** 3 3 **. *** *** print Yes 4. print a blank line after each test case no each input |
||||||||||