06 2021 档案
摘要:题目: 给你一个 m * n 的矩阵 seats 表示教室中的座位分布。如果座位是坏的(不可用),就用 '#' 表示;否则,用 '.' 表示。 学生可以看到左侧、右侧、左上、右上这四个方向上紧邻他的学生的答卷,但是看不到直接坐在他前面或者后面的学生的答卷。请你计算并返回该考场可以容纳的一起参加考试且
阅读全文
摘要:#include <cstring> #include <iostream> #include <algorithm> using namespace std; const int N = 20,M = 1 << 20; int n; int w[N][N]; //1、哪些点被用过 //2、目前停在
阅读全文