On contest that has recently been held there was a problem with code 389B — Fox and Cross. When i submitted my solution for this problem I got WA on test example that is listed here:
4
....
.#..
....
....
My program gave output YES since we can construct cross this way:
.#..
###.
.#..
....
but answer is NO.
Can somebody tell me if and if I did where did I get the problem statement wrong?
Thanks in advance, Petar :)









You can make crosses only when ALL of the cells of the cross are '#'.
All the crosses need to be constructed from existing '#'. Essentially, you have to use all the '#'s exactly once and only those characters to make crosses.
Furthermore, one of the test examples reminds that any example with a non-multiple of 5 number of '#'s is "NO".