摘要: #include <iostream> #include <vector> using namespace std; class DSU{ public: vector<int>parent; DSU(int n) { parent = vector<int>(n); for(int i = 0; 阅读全文
posted @ 2022-05-03 20:20 fourmii 阅读(62) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <string> #include <vector> using namespace std; int lcs(string text1,string text2) { int n1 = text1.size(), n2 = text2.si 阅读全文
posted @ 2022-05-03 12:28 fourmii 阅读(25) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <vector> #include <unordered_set> #include <unordered_map> #include <string> using namespace std; int climbStairs(int n) 阅读全文
posted @ 2022-05-03 10:00 fourmii 阅读(22) 评论(0) 推荐(0) 编辑