摘要: 这道题有需要将结果存储在一个单独的数组res里,再在每次题目输入n时从res数组中取出结果,否则会超时。 #include<iostream> using namespace std; const int N = 30; int n; bool dg[N],udg[N]; bool col[N]; 阅读全文
posted @ 2021-04-12 10:38 晓尘 阅读(52) 评论(0) 推荐(0)