题解 3022: 流感传染

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

流感传染(java)

摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class 流感传染 {     public static void main(String[……

BFS模版题(很模版)

```cpp#includeusingnamespacestd;typedefpairPII;constintN=1000;intn,end_day;charroom[N][N];queueq1;queueq2;intans;intX[]={0,

3022: 流感传染一眼丁真

摘要:解题思路:        遍历数组s在哪有@,有就在另一个数组上标记为1;数组s遍历完后,遍历数组a,在有标记的位置对应数组s[ i ][ j ],后判断是s[ i ][ j ]四个方向是否能被感染;……