摘要:
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<ll, ll> P; bool cmp(P a, P b) { if(a.first == b.first) { return a.sec 阅读全文
摘要:
前两题就是憨批题,从第三道开始补题吧 第三题 一个简单的DFS。看错题意了以为是==8皇后,事实上就是个不断模拟进行搜索的过程,用个deep记录遍历深度即可。 #include <bits/stdc++.h> using namespace std; int N, K; int a[10][10]; 阅读全文
摘要:
A310电脑就离谱,明年去北京再战吧 持续更新ing 最后一道填空题: hp DFS #include<bits/stdc++.h> using namespace std; int N; bool vis[6][6]; int ans = 0; int dir[4][2] = {{1, 0}, { 阅读全文