CSES - Tree Diameter CSES - Tree DiameterTree-Diameter.cpp // Author : ysh // 09/23/2022 Fri 20:14:07.72 // https://cses.fi/problemset/task/1131 #include<bits/stdc++.h> using namespace std; vector<vector<int>>f; 2022-09-23 資訊 > 題解 > CSES #solution #DP #DFS #tree
CSES - Subordinates CSES - SubordinatesSubordinates.cpp // Author : ysh // 09/21/2022 Wed 15:41:09.20 // https://cses.fi/problemset/task/1674 #include<bits/stdc++.h> using namespace std; vector<vector<int>>f; ve 2022-09-21 資訊 > 題解 > CSES #solution #DFS
CSES - Salary Queries CSES - Salary QueriesSalary-Queries-4.cpp // Author : ysh // 09/20/2022 Sun 9:47:00.78 // https://cses.fi/problemset/task/1144 #include<bits/stdc++.h> #include<bits/extc++.h> using namespace st 2022-09-18 資訊 > 題解 > CSES #solution #re #pb_ds
CSES - Range Xor Queries CSES - Range Xor QueriesRange-Xor-Queries.cpp // Author : ysh // 09/18/2022 Sun 9:12:35.91 // https://cses.fi/problemset/task/1650 #include<bits/stdc++.h> using namespace std; #define int long lon 2022-09-18 資訊 > 題解 > CSES #solution #BIT
c085. $E.$$Friends$ - TCFSH CIRC Judge TCIRC解題紀錄 c085. $E.$$Friends$ - TCFSH CIRC Judgetcirc-c085.cpp // Author : ysh // 09/16/2022 Fri 22:31:59.27 // https://judge.tcirc.tw/ShowProblem?problemid=c085 #include<b 2022-09-16 資訊 > 題解 > TCIRC #solution #DSU
d102. P-8-1. 樹上的推銷員 - TCFSH CIRC Judge TCIRC解題紀錄 d102. P-8-1. 樹上的推銷員 - TCFSH CIRC JudgeAP325-d102.cpp // Author : ysh // 09/16/2022 Fri 20:49:09.27 // https://judge.tcirc.tw/ShowProblem?problemid=d102 #include<b 2022-09-16 資訊 > 題解 > TCIRC #solution #operator #graph #DSU #DFS #struct
R - Walk R - WalkWalk-2.cpp // Author : ysh // 09/15/2022 Thu 21:13:55.25 // https://atcoder.jp/contests/dp/tasks/dp_r #include<bits/stdc++.h> using namespace std; #define int long long constexpr int R = 1e 2022-09-15 資訊 > 題解 > AtCoder #solution #fast-power
R - Walk R - WalkWalk.cpp // Author : ysh // 09/15/2022 Thu 20:13:04.26 // https://atcoder.jp/contests/dp/tasks/dp_r #include<bits/stdc++.h> using namespace std; #define int long long constexpr int R = 1e9 2022-09-15 資訊 > 題解 > AtCoder #solution #fast-power
g640. 璽羽的壽司 - 高中生程式解題系統 Zerojudge解題紀錄 g640. 璽羽的壽司 - 高中生程式解題系統Zerojudge-g640.cpp // Author : ysh // 09/14/2022 Wed 10:46:41.51 #include<bits/stdc++.h> using namespace std; int main() { ios 2022-09-14 資訊 > 題解 > Zerojudge #solution #binary_search
d539. 區間 MAX - 高中生程式解題系統 Zerojudge解題紀錄 d539. 區間 MAX - 高中生程式解題系統Zerojudge-d539-6.cpp // Author : ysh // 09/14/2022 Wed 9:59:45.74 #include<bits/stdc++.h> using namespace std; struct table{ 2022-09-14 資訊 > 題解 > Zerojudge #solution #sparse_table