void knight(int i , int j)
{
// printf("%d %dn",i,j)
if (board[i][j] != 0 || i < 0 || i >= Size || j < 0 || j >= Size )
{
return
}
step++
board[i][j]=step
if (step == Size*Size)
{
showboard()
system("PAUSE")
return
}
//DFS
knight(i-2,j-1) //left
knight(i-2,j+1)
knight(i+2,j-1) //right
knight(i+2,j+1)
knight(i-1,j-2) //up
knight(i+1,j-2)
knight(i+1,j+2) //down
knight(i-1,j+2)
//
board[i][j]=0
step--
}
標(biāo)簽:
int
knight
printf
board
上傳時(shí)間:
2014-01-17
上傳用戶:cxl274287265
This edition updates and continues the series of books based on the residential
courses on radiowave propagation organised by the IEE/IET.
The first course was held in 1974, with lectures by H. Page, P. Matthews,
D. Parsons, M.W. Gough, P.A. Watson, E. Hickin, T. Pratt, P. knight, T.B. Jones,
P.A. Bradley, B. Burgess and H. Rishbeth.
標(biāo)簽:
Propagation
Radiowaves
edition
3rd
of
上傳時(shí)間:
2020-05-31
上傳用戶:shancjb