CSES - Subtree Queries CSES - Subtree QueriesSubtree-Queries-2.cpp // Author : ysh // 11/04/2022 Fri 15:48:09.90 // https://cses.fi/problemset/task/1137 #include<bits/stdc++.h> using namespace std; #include<tree> int 2022-11-04 資訊 > 題解 > CSES #solution #BIT #DFS #tree
CSES - Distance Queries CSES - Distance QueriesDistance-Queries-2.cpp // Author : ysh // 11/04/2022 Fri 14:31:53.56 // https://cses.fi/problemset/task/1135 #include<bits/stdc++.h> using namespace std; vector<vector< 2022-11-04 資訊 > 題解 > CSES #solution #tree #LCA
CSES - Company Queries II CSES - Company Queries IICompany-Queries-II.cpp // Author : ysh // 11/04/2022 Fri 14:19:29.34 // https://cses.fi/problemset/task/1688 #include<bits/stdc++.h> using namespace std; vector<vector&l 2022-11-04 資訊 > 題解 > CSES #solution #tree #LCA
CSES - Company Queries I CSES - Company Queries ICompany-Queries-I.cpp // Author : ysh // 11/04/2022 Fri 14:03:57.46 // https://cses.fi/problemset/task/1687 #include<bits/stdc++.h> using namespace std; vector<vector< 2022-11-04 資訊 > 題解 > CSES #solution #tree
d767. 血緣關係 - 高中生程式解題系統 Zerojudge解題紀錄 d767. 血緣關係 - 高中生程式解題系統Zerojudge-d767-2.cpp // Author : ysh // 11/04/2022 Fri 8:28:42.40 #include<bits/stdc++.h> using namespace std; #ifdef LOCAL #include< 2022-11-04 資訊 > 題解 > Zerojudge #solution #graph #LCA
CSES - Tree Distances II CSES - Tree Distances IITree-Distances-II-2.cpp // Author : ysh // 11/02/2022 Wed 9:20:11.51 // https://cses.fi/problemset/task/1133 #include<bits/stdc++.h> using namespace std; #define int long l 2022-11-02 資訊 > 題解 > CSES #solution #DFS #tree
d793. 00929 - Number Maze - 高中生程式解題系統 Zerojudge解題紀錄 d793. 00929 - Number Maze - 高中生程式解題系統Zerojudge-d793.cpp // Author : ysh // 11/01/2022 Tue 11:19:59.04 #include<bits/stdc++.h> using namespace std; struct box& 2022-11-01 資訊 > 題解 > Zerojudge #solution #graph #dijkstra
j125. 4. 蓋步道 - 高中生程式解題系統 Zerojudge解題紀錄 j125. 4. 蓋步道 - 高中生程式解題系統Zerojudge-j125-3.cpp // Author : ysh // 10/30/2022 Sun 12:00:03.17 #include<bits/stdc++.h> using namespace std; vector<vector<pa 2022-10-30 資訊 > 題解 > Zerojudge #solution #graph #BFS
CSES - Advertisement CSES - AdvertisementAdvertisement-2.cpp // Author : ysh // 10/27/2022 Thu 18:25:06.75 // https://cses.fi/problemset/task/1142/ #include<bits/stdc++.h> using namespace std; #ifdef LOCAL #include< 2022-10-27 資訊 > 題解 > CSES #solution #DC
1209 - 圖論 之 二分圖測試 | TIOJ INFOR Online Judge 1209 - 圖論 之 二分圖測試 | TIOJ INFOR Online JudgeTIOJ-1209.cpp // Author : ysh // 10/27/2022 Thu 7:53:48.37 // https://tioj.ck.tp.edu.tw/problems/1209 #include<bits/stdc++.h> using namespace std; #ifdef 2022-10-27 資訊 > 題解 > TIOJ #solution #graph #DFS #bigraph