Loading...

上一页 1 ··· 3 4 5 6 7
摘要: Single point modification, interval query the code is follow #include <cstdio> #include <iostream> #define lowbit(x) x&-x using namespace std; const i 阅读全文
posted @ 2020-07-23 12:18 Youngore 阅读(69) 评论(0) 推荐(1)
摘要: 关于存图方式常用的有两种 第一种 邻接矩阵 直接暴力存图 int u, v, w; cin >> u >> v >> w; a[u][v] = w; 即意为在$u$与$v$之间连上一条权值为$w$的边 也可以借助$vector$来存储,但是$vector$容易被卡,不建议用 vector<int>q 阅读全文
posted @ 2020-07-23 12:17 Youngore 阅读(167) 评论(0) 推荐(1)
上一页 1 ··· 3 4 5 6 7