c++算法
文章平均质量分 81
星辰是我的
这个作者很懒,什么都没留下…
展开
-
前缀和 sort
AYIT蓝桥杯集训1原创 2023-03-04 10:23:34 · 363 阅读 · 0 评论 -
水几道dp动态规划的题
目录 文章 一、Milking Time 二、Phalanx 三.Common Subsequence 一、Milking Time 链接:3616 -- Milking Time (poj.org)http://poj.org/problem?id=3616 其实我感觉这题,更像是贪心和dp的结合 #include<iostream> #include<string.h> #include<algorithm> using na...原创 2022-05-04 20:52:23 · 187 阅读 · 0 评论 -
拓扑排序判断有向图是否成环
前端时间有学过并查集的小伙伴们应该都知道怎么用并查集判断是否成环了吧,今天在实验室训练的时候又学会了一项新技能——拓扑,放个题和代码吧。 D - Legal or Not ACM-DIY is a large QQ group where many excellent acmers get together. It is so harmonious that just like a big family. Every day,many "holy cows" like HH, hh, AC, ZT,原创 2022-05-02 21:49:10 · 446 阅读 · 0 评论