蓝桥杯 8.4方格分割
思路:由于是正方形,那么从中心进行dfs,找出每个地方对称的位置,最后结果除以4,考虑旋转和翻折。
#include <iostream>
#include <stdio.h>
using namespace std;
const int N = 6;
int ans = 0;
int mpt[N+1][N+1];
int dir[4][2] = {0,1,1,0,0,-1,-1,0};
void dfs(int x,int y)
{
if(x == 0 || y == 0
原创
2021-03-16 16:21:04 ·
70 阅读 ·
0 评论