摘要:
#include<stdio.h>int count ;int queen ;void Answers( int row, int ml, int mr){ if(row != queen) { int pos = queen & ~(row|ml|mr); while(pos) { int p = pos & -pos; pos -= p; Answers( row|p, (ml|p)>>1, (mr|p)<<1); } } else count++;}int main( ){ int n,i; while(scanf("%d&q 阅读全文
posted @ 2012-08-07 16:05 皇星客栈--Linux 阅读(208) 评论(0) 推荐(0) 编辑