1、棋盘覆盖问题:给定一个2^k×2^k的棋盘(具体图例见教材),有一个特殊棋格,拥有一个特殊棋格的棋盘称为特殊棋盘。现要用四种L型骨牌(具体图例见教材)覆盖特殊棋盘上除特殊棋格外的全部棋格,不能重叠,找出覆盖方案。
这是第二次算法作业的其中一题。要求python写,但我不想用,不熟悉那语言,所以打算java写好交上去。
直接看代码肯定很烦,下面我有图解,希望对你有帮助
/* Created with IntelliJ IDEA.
*
* @Author: Tired_cxx
* @Date: 2023/03/11/15:49
* @Description:
*/
import java.util.Scanner;
public class Trash {
static int[][] arr;
static int number = 1;
static boolean loop=true;
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = 0;
int sBRow = 0, sBCol = 0;
while (loop) {
System.ou