ysh's blog
  • 首頁
  • 庫存
  • 分類
  • 標籤
  • 關於
  •   
  •   

APCS - 11201-4-2.cpp

APCS - 11201-4-2.cppAPCS-11201-4-2.cpp // Author : ysh // 01/09/2023 Mon 14:42:55.83 #include<bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0);
2023-01-09
資訊 > 題解 > APCS
#solution #greedy

d108. Q-8-6. 樹狀圖的距離總和 - TCFSH CIRC Judge

TCIRC解題紀錄 d108. Q-8-6. 樹狀圖的距離總和 - TCFSH CIRC JudgeAP325-d108.cpp // Author : ysh // 01/07/2023 Sat 21:00:37.69 // https://judge.tcirc.tw/ShowProblem?problemid=d108 #include<
2023-01-07
資訊 > 題解 > TCIRC
#solution #DP #tree

d118. 例題 P-6-16. 山寨華山論劍 - TCFSH CIRC Judge

TCIRC解題紀錄 d118. 例題 P-6-16. 山寨華山論劍 - TCFSH CIRC JudgeAP325-d118-2.cpp // Author : ysh // 01/07/2023 Sat 19:07:20.97 // https://judge.tcirc.tw/ShowProblem?problemid=d118 #includ
2023-01-07
資訊 > 題解 > TCIRC
#solution #DP

d018. 例題 P-2-9. 子集合乘積 (折半枚舉) (@@) - TCFSH CIRC Judge

TCIRC解題紀錄 d018. 例題 P-2-9. 子集合乘積 (折半枚舉) (@@) - TCFSH CIRC JudgeAP325-d018-2.cpp // Author : ysh // 01/06/2023 Fri 11:43:14.39 // https://judge.tcirc.tw/ShowProblem?problemid=d0
2023-01-06
資訊 > 題解 > TCIRC
#solution #half-brute

Nine Packs – Kattis, Kattis

Nine Packs – Kattis, KattisNine-Packs.cpp // Author : ysh // 01/06/2023 Fri 10:13:10.52 // https://open.kattis.com/problems/ninepacks #include<bits/stdc++.h> using namespace std; const int R = 1000
2023-01-06
資訊 > 題解 > Kattis
#solution #DP

Increasing Subsequence – Kattis, Kattis

Increasing Subsequence – Kattis, KattisIncreasing-Subsequence-2.cpp // Author : ysh // 01/06/2023 Fri 9:53:54.37 // https://open.kattis.com/problems/increasingsubsequence #include<bits/stdc++.h> u
2023-01-06
資訊 > 題解 > Kattis
#solution #DP #re-search

j242. 111北二1a.自然數的平方根 - 高中生程式解題系統

Zerojudge解題紀錄 j242. 111北二1a.自然數的平方根 - 高中生程式解題系統Zerojudge-j242.cpp // Author : ysh // 12/31/2022 Sat 22:17:08.52 #include<bits/stdc++.h> using namespace std; vector<pair&
2022-12-31
資訊 > 題解 > Zerojudge
#solution #prime

2022.12 TOI 潛力組題解

嗯為什麼我覺得這次好難QAQ BSTproblem給定一顆二元搜尋樹的後序走訪,請你復原這顆二元搜尋樹。 solution因為左子樹的值會小於自己,而右子樹會大於自己,所以我可以採用「認領」的方式實作。 整理一下會發現對於每一個節點,其值必在所有右祖先節點與左祖先節點之間,我們令這兩個值分別為$max,min$$\text{, while}$ $min \leq max$ 。 由於不知道根結點很麻
2022-12-30
資訊 > 題解
#algo #solution #exam

Chef and Queries Practice Coding Problem - CodeChef

Chef and Queries Practice Coding Problem - CodeChefChef-and-Queries-2.cpp // Author : ysh // 12/15/2022 Thu 20:00:10.18 // https://www.codechef.com/problems/CHEFQUE #include<bits/stdc++.h> #include
2022-12-15
資訊 > 題解 > Others
#solution #gp_hash_table

Chef and Queries Practice Coding Problem - CodeChef

Chef and Queries Practice Coding Problem - CodeChefChef-and-Queries.cpp // Author : ysh // 12/15/2022 Thu 19:30:10.17 // https://www.codechef.com/problems/CHEFQUE #include<bits/stdc++.h> using name
2022-12-15
資訊 > 題解 > Others
#solution #bit
1…1112131415…37

搜尋

Hexo Fluid
總訪問量 次 總訪客數 人