![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
洛谷
迷麟Milin
There isn't time, so brief is life, for bickerings, apologies, heartburnings, callings to account. There is only time for loving, and but an instant, so to speak, for that. The good life is built with good relationships.
——Mark Twain
展开
-
DFS模板 洛谷 P2089 P1605 P1101
DFS模板int search(int t){ if(满足输出条件) { 输出解; } else { for(int i=1;i<=尝试方法数;i++) if(满足进一步搜索条件) { 为进一步搜索所需要的状态打上标记; ...原创 2020-02-04 18:13:59 · 323 阅读 · 0 评论 -
洛谷 P1781 宇宙总统
题目大意给出m个数,第i个数的编号为i,试求最大的数的编号及其数值(以字符串形式输出即可)自定义排序方法cmpbool cmp(person x, person y){ if (x.score.size() == y.score.size()) return x.score > y.score; else return x.score.size() >...原创 2019-03-16 22:32:29 · 188 阅读 · 0 评论