摘要:
P8604 [蓝桥杯 2013 国 C] 危险系数 暴力删除点,然后判断能否走过去 #include<bits/stdc++.h> #define ll long long using namespace std; const int N =2e3+100; int ver[N] , Next[N] 阅读全文
摘要:
P1605 迷宫 BFS模板题,到每个点判断一下是否有障碍物即可 #include<bits/stdc++.h> using namespace std; int n , m , t; struct node{ int x , y ; } a , b; int dx[] = {1 , -1 , 0 阅读全文
摘要:
T1 P3613 【深基15.例2】寄包柜 用二位数组肯定挂,所以采用map或者vector #include<bits/stdc++.h> using namespace std; map<int , int>a[100020]; int n , m ; int main () { cin >> 阅读全文