Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
クイーンドミネーション n×n ボードを考えると、ドミネーション数は、すべての正方形を攻撃または占有するために必要なクイーン (またはその他のピース) の最小数です。n=8 の場合、クイーンの支配数は 5 です。述語 slution(N) を書き、すべての正方形をカバーするために必要なクイーンの最小数を取得します。