HBC236490宝盒,数据结构,STL,动态规划King of Gamers题解 Little G is going to playnnngames. Little G is the king of gamers. If he wants to win, he will... 算法基础篇 2023-11-26 251 #HBC236490宝盒 #数据结构 #STL #动态规划King of Gamers题解
HBC238091烦人的依赖,图论,拓扑排序,数据结构,STL,字符串,字符串hashPetya and Graph题解 m条边的带点权和边权的简单图,我们定义一个图的价值为:边权和与点权和的差值,请你求出这张图的所有子图中,权值最大的子图的权值。... 算法基础篇 2023-11-25 264 #HBC238091烦人的依赖 #图论 #拓扑排序 #数据结构 #STL #字符串 #字符串hashPetya and Graph题解
HBC236739组队,数据结构,STL,排序,贪心,二分,分治Palindrome Partition题解 Given a string s, find the number of ways to split s to substrings such that if there are kkk substr... 算法基础篇 2023-11-24 204 #HBC236739组队 #数据结构 #STL #排序 #贪心 #二分 #分治Palindrome Partition题解
HBC247437赛道修建,贪心,二分,STL,数据结构,分治不可道题解 有nnn个随机变量,每个随机变量从[1,m][1,m][1,m]之间的整数均匀随机,求最小的,至少出现了kkk次的数字的期望(如果这个数字不存在,则视为000 例:若n=3,m=3,k=2n=... 算法基础篇 2023-11-24 197 #HBC247437赛道修建 #贪心 #二分 #STL #数据结构 #分治不可道题解
HBC24566露营,数据结构,STL,广度优先搜索(BFS),搜索[USACO 2014 Jan B]Bessie Slows Down题解 Bessie the cow is competing in a cross-country skiing event at the winter Moolympic games. She star... 算法基础篇 2023-11-24 218 #HBC24566露营 #数据结构 #STL #广度优先搜索(BFS) #搜索[USACO 2014 Jan B]Bessie Slows Down题解
HBC225765Another DistiHBCt Values,STL,搜索减枝,数据结构,搜索Cells题解 Cuber QQ got a table of infinite size. He will consider the table rows numbered from top to bottom ∞... 算法基础篇 2023-11-24 222 #HBC225765Another DistiHBCt Values #STL #搜索减枝 #数据结构 #搜索Cells题解
HBC237065保卫家园,数据结构,STL,贪心骑士战胜魔王题解 小宝在玩一款模拟游戏, 地图是一个由′.′,′#′,′′'.','#', '*'′.′,′#′,′′三种字符组成的大小为nmn*mnm 的方格图,其中 ′.′'.'′.′代表空格(空... 算法基础篇 2023-11-24 198 #HBC237065保卫家园 #数据结构 #STL #贪心骑士战胜魔王题解
HBC247975小宝与后缀表达式,数据结构,栈,STL,贪心,二分,分治,模拟还原数列题解 升序排序后是一个等差数列,[l,r] 是优美的当且仅当其所有的子区间都是好的,m 条信息给了你,希望你帮她还原出这个序列,请你帮帮她,a 即可,无解输出 “NO“。... 算法基础篇 2023-11-24 247 #HBC247975小宝与后缀表达式 #数据结构 #栈 #STL #贪心 #二分 #分治 #模拟还原数列题解
HBC214802轰炸区最优选取,深度优先搜索(DFS),STL,数据结构,搜索Whereisthebilliardballgoing?题解 A billiard ball is hit on a rectangular billiard table with length L and width W, and an initial v... 算法基础篇 2023-11-24 209 #HBC214802轰炸区最优选取 #深度优先搜索(DFS) #STL #数据结构 #搜索Whereisthebilliardballgoing?题解