摘要: https://www.acwing.com/problem/content/1131/ #include<bits/stdc++.h> #define fore(x,y,z) for(LL x=(y);x<=(z);x++) #define forn(x,y,z) for(LL x=(y);x<( 阅读全文
posted @ 2022-09-04 18:14 80k 阅读(72) 评论(0) 推荐(0)
摘要: 例题: https://www.acwing.com/problem/content/description/1131/ 1、仅用dis数组记录,出队时记录最小距离(可能会导致重复入队) #include<bits/stdc++.h> #define fore(x,y,z) for(LL x=(y) 阅读全文
posted @ 2022-09-04 17:12 80k 阅读(35) 评论(0) 推荐(0)