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; };
相关文章
相关标签/搜索