摘要:
2019杭电多校第一场 有点自闭,本来应该昨天写的,拖到了今天 1001. Blank upsolved 题意是在$n$个位置上填数,只能填$0,1,2,3$这四种,然后有$m$个限制条件,限制的是区间不同数的个数,求填数方案数$1 using namespace std; const int N 阅读全文
摘要:
Codeforces1110F dfs + 线段树 + 询问离线 F. Nearest Leaf Description: Let's define the Eulerian traversal of a tree (a connected undirected graph without cycl 阅读全文
摘要:
Codeforces1111D 退背包+组合数 D. Destroy the Colony Description: There is a colony of villains with several holes aligned in a row, where each hole contains 阅读全文
摘要:
Codeforces 1108F MST + LCA F. MST Unification Description: You are given an undirected weighted connected graph with $n$ vertices and $m$ edges withou 阅读全文
摘要:
Codeforces 1108E2 E2. Array and Segments (Hard version) Description: The only difference between easy and hard versions is a number of elements in the 阅读全文
摘要:
Codeforces 1107G 线段树最大子段和 + 单调栈 G. Vasya and Maximum Profit Description: Vasya got really tired of these credits (from problem F) and now wants to ear 阅读全文