洛谷
迷麟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 · 430 阅读 · 0 评论 -
洛谷 P1781 宇宙总统
题目大意 给出m个数,第i个数的编号为i,试求最大的数的编号及其数值(以字符串形式输出即可) 自定义排序方法cmp bool 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 · 249 阅读 · 0 评论
分享