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

CSES - Coin Combinations I

CSES - Coin Combinations ICoin-Combinations-I.cpp // Author : ysh // 2024/03/10 Sun 20:59:26 // https://cses.fi/problemset/task/1635 #include<bits/stdc++.h> using namespace std; const int R = int(1
2024-03-10
資訊 > 題解 > CSES
#solution #DP

Codeforces - Vlad-and-a-Sum-of-Sum-of-Digits

Codeforces - Vlad-and-a-Sum-of-Sum-of-DigitsVlad-and-a-Sum-of-Sum-of-Digits.cpp // Author : ysh // 2024/02/20 Tue 09:35:35 // https://codeforces.com/contest/1926/problem/C #include<bits/stdc++.h> u
2024-02-20
資訊 > 題解 > Codeforces
#solution #DP

c495. 四、次小生成樹(SBMST) - 高中生程式解題系統

本題被回報為卡常題,問題著重於與主要演算法無關的壓常,做題前請三思並請勿花費不必要的時間於此處。 Zerojudge解題紀錄 c495. 四、次小生成樹(SBMST) - 高中生程式解題系統Zerojudge-c495-2.cpp // Author : ysh // 2024/01/24 Wed 2
2024-01-24
資訊 > 題解 > Zerojudge
#solution #greedy #graph #LCA #BFS #MST

D - Base n

D - Base nBase-n.py # Author : ysh # 2024/01/21 Sun 22:14:02 # https://atcoder.jp/contests/abc192/tasks/abc192_d a = int(input()) b = int(input()) def check(x:int) -> bool: last = 0 for i in
2024-01-21
資訊 > 題解 > AtCoder
#solution #binary_search

b966. 第 3 題 線段覆蓋長度 - 高中生程式解題系統

Zerojudge解題紀錄 b966. 第 3 題 線段覆蓋長度 - 高中生程式解題系統Zerojudge-b966-3.cpp // Author : ysh // 2024/01/18 Thu 17:07:55 #include<bits/stdc++.h> using namespace std; const int R = int(1
2024-01-18
資訊 > 題解 > Zerojudge
#solution #DC #seg_tree #lazy-tag

b966. 第 3 題 線段覆蓋長度 - 高中生程式解題系統

Zerojudge解題紀錄 b966. 第 3 題 線段覆蓋長度 - 高中生程式解題系統Zerojudge-b966-2.cpp // Author : ysh // 2024/01/18 Thu 17:02:49 #include<bits/stdc++.h> using namespace std; #include<slow> i
2024-01-18
資訊 > 題解 > Zerojudge
#solution #greedy

CSES - Distance Queries

CSES - Distance QueriesDistance-Queries-3.cpp // Author : ysh // 2024/01/18 Thu 16:31:34 // https://cses.fi/problemset/task/1135 #include<bits/stdc++.h> using namespace std; vector<vector<int
2024-01-18
資訊 > 題解 > CSES
#solution #DP #graph #LCA #BFS

Problem - 3689

Problem - 3689Infinite-monkey-theorem.cpp // Author : ysh // 2024/01/13 Sat 15:26:11 // https://acm.hdu.edu.cn/showproblem.php?pid=3689 #include<bits/stdc++.h> using namespace std; #ifdef LOCAL #in
2024-01-13
資訊 > 題解 > Others
#solution #DP #KMP

APCS - 11301-4.cpp

APCS - 11301-4.cppAPCS-11301-4.cpp // Author : ysh // 2024/01/12 Fri 16:48:01 #include<bits/stdc++.h> using namespace std; #define last(i,j) (f.at(j) - (i == 0 ? 0 : f.at(i - 1))) vector<vector&
2024-01-12
資訊 > 題解 > APCS
#solution #pref #DP

APCS - 11301-3.cpp

APCS - 11301-3.cppAPCS-11301-3.cpp // Author : ysh // 2024/01/12 Fri 16:45:53 #include<bits/stdc++.h> using namespace std; #define debug(i) (i) // {cerr<<"["<<#i<<"] : [";for
2024-01-12
資訊 > 題解 > APCS
#solution #graph #DFS #tapo #DAG
1234…35

搜尋

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