洛谷 - square-game 洛谷 - square-gamesquare-game.cpp // Author : ysh // 10/22/2022 Sat 13:13:51.77 // https://www.luogu.com.cn/problem/P1129 #include<bits/stdc++.h> using namespace std; #ifdef LOCAL #include<debug.h 2022-10-22 資訊 > 題解 > 洛谷 #solution #graph #bigraph
1069 - E.魔法部的任務 | TIOJ INFOR Online Judge 1069 - E.魔法部的任務 | TIOJ INFOR Online Judgemagical-task-2.cpp // Author : ysh // 10/21/2022 Fri 16:06:37.82 // https://tioj.ck.tp.edu.tw/problems/1069 #include<bits/stdc++.h> using namespace std; str 2022-10-21 資訊 > 題解 > TIOJ #solution #graph #bigraph
1066 - B.惱人的零錢 | TIOJ INFOR Online Judge 1066 - B.惱人的零錢 | TIOJ INFOR Online Judgeannoying-money.cpp // Author : ysh // 10/21/2022 Fri 9:09:09.77 // https://tioj.ck.tp.edu.tw/problems/1066 #include<bits/stdc++.h> using namespace std; cons 2022-10-21 資訊 > 題解 > TIOJ #solution #greedy
1067 - C.互質任務 | TIOJ INFOR Online Judge 1067 - C.互質任務 | TIOJ INFOR Online Judgeprime-task.cpp // Author : ysh // 10/21/2022 Fri 8:27:03.37 // https://tioj.ck.tp.edu.tw/problems/1067 #include<bits/stdc++.h> using namespace std; #define R 2022-10-21 資訊 > 題解 > TIOJ #solution #DP
f505. 10603 - Fill - 高中生程式解題系統 Zerojudge解題紀錄 f505. 10603 - Fill - 高中生程式解題系統Zerojudge-f505.cpp // Author : ysh // 10/20/2022 Thu 9:44:27.82 #include<bits/stdc++.h> using namespace std; #ifdef LOCAL #incl 2022-10-20 資訊 > 題解 > Zerojudge #solution #BFS
洛谷 - K's-farm 洛谷 - K’s-farmK’s-farm.cpp // Author : ysh // 10/18/2022 Tue 16:24:07.30 // https://www.luogu.com.cn/problem/P1993 #include<bits/stdc++.h> using namespace std; #include<fast> int main() { 2022-10-18 資訊 > 題解 > 洛谷 #solution #graph #difference
洛谷 - master 洛谷 - mastermaster.cpp // Author : ysh // 10/16/2022 Sun 9:01:26.79 // https://www.luogu.com.cn/problem/P4933 #include<bits/stdc++.h> using namespace std; #define R 998244353 int c[1000][40001] = & 2022-10-16 資訊 > 題解 > 洛谷 #solution #DP
洛谷 - middle 洛谷 - middlemiddle.cpp // Author : ysh // 10/15/2022 Sat 8:41:59.93 // https://www.luogu.com.cn/problem/P1168 #include<bits/stdc++.h> #include<bits/extc++.h> using namespace std; using namespace 2022-10-15 資訊 > 題解 > 洛谷 #solution #pb_ds
洛谷 - LCA 洛谷 - LCALCA.cpp // Author : ysh // 10/15/2022 Sat 8:08:49.90 // https://www.luogu.com.cn/problem/P3379 #include<bits/stdc++.h> using namespace std; #ifdef LOCAL #include<debug.h> #else #define 2022-10-15 資訊 > 題解 > 洛谷 #solution #DFS #tree #LCA #gp_hash_table #sparse_table #BFS
CSES - Counting Paths CSES - Counting PathsCounting-Paths.cpp // Author : ysh // 11/04/2022 Fri 14:46:42.16 // https://cses.fi/problemset/task/1136 #include<bits/stdc++.h> using namespace std; vector<vector<int>>m 2022-10-14 資訊 > 題解 > CSES #solution #tree #LCA #difference