acvv_khalil
acvv_khalil
全部文章
分类
题解(3)
归档
标签
去牛客网
登录
/
注册
acvv_khalil的博客
全部文章
(共3篇)
题解 | #建物流中转站#
#include <iostream> #include <cstring> #include <algorithm> #include <vector> using namespace std; const int N = 100010; int ...
C++
2021-10-29
1
514
题解 | #小米Git#
求树上lca 这里没有采用倍增的方法, 直接dfs求depth数组和fa数组即可 class Solution { public: /** * 返回git树上两点的最近分割点 * * @param matrix 接邻矩阵,表示git树,matrix[i][j]...
C++
2021-10-29
0
520
题解 | #扭蛋机#
#include <iostream> #include <cstring> #include <algorithm> using namespace std; int main() { int n; string res; cin &...
C++
2021-10-29
5
560