the last 4 digits of number of patterns of places which you can put Bishops.
Symmetric is not considered.
All submissions have a maximum of 2 seconds of runtime per test case. ... Because the inherent speed differences between Python and the other offered languages is large, some problems may require extra optimization or not be solvable using the Python language.
I am sorry. I was not able to understand the problem. Is there any example?
thats why they only ask for the last 4 digits.
Input:
list of string(square) and the number fo Bishops which you must put, like
["........",
"......#.",
"........",
".#......",
"........",
".....#..",
"........",
"...#...."]
5
Output:
the last 4 digits of number of patterns of places which you can put Bishops.
Symmetric is not considered.
'.' means the place you can put Bishop.
'#' means the place you can not put Bishop.
You can not put the Bishop if other Bishop is put on the diagonal.
example)
Input:
[".#",
".."]
2
Output:
2
the fllowing 2 pattern
"B#"
"B."
".#"
"BB"