摘要: A. Li Hua and Maze 题目保证了两个点的哈密顿距离至少为 $2$,所以他们不会相邻。 只要有点在角上答案就是 $2$,在边上但不在角上就是 $3$,否则就是 $4$。 #include <bits/stdc++.h> #include <ext/pb_ds/assoc_contain 阅读全文
posted @ 2023-04-11 20:49 CountingGroup 阅读(32) 评论(0) 推荐(0) 编辑
摘要: A - Double Click 直接模拟就好。 时间复杂度:$O(N)$。 #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #include 阅读全文
posted @ 2023-04-11 20:25 CountingGroup 阅读(27) 评论(0) 推荐(0) 编辑