P1332 血色先鋒隊

傳送門node 這題跟上一次作的題有點相似,個人求法是每輸入一個感染源就從新一遍,更新大小。c++ #include<bits/stdc++.h> using namespace std; const int maxn=5e2+10; const int maxn1=0x3f3f3f3f; int n,m,s[maxn][maxn],a,b; struct node{ int x,y,k; };
相關文章
相關標籤/搜索