八皇后回溯法

1 #include <iostream> 2 using namespace std; 3 4 int ans=0; 5 const int N = 8; 6 int a[N][N]={0}; 7 8 void show(){ 9 cout<<"answer:"<<ans<<endl; 10 for(int i=0;i<N;i++){ 11 f
相關文章
相關標籤/搜索