How Many Knights

Problem Number: 
696
Type of Problem: 
Problem Category: 
Input: 
Critical Input
0
0
Critical Input: 
1 1 1 0 0 1 2 1 1 2 2 2 2 3 3 2 500 500 45 6 7 9 4 10 10 11 2 5 2 283 484 2 123 2 2 500 13 24 2 100 100 2 2 0 0 2 1 6 1 10 10 1 0 0
Random Input: 
Problem Id: 
696