
贪心
Daniel__d
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
元素-线性基,贪心
P4570 题目描述 题解 代码 #include<bits/stdc++.h> #define M 100009 #define int long long using namespace std; int read(){ int f=1,re=0;char ch; for(ch=getchar();!isdigit(ch)&&ch!='-';ch=getchar...原创 2020-04-04 16:43:30 · 206 阅读 · 0 评论 -
Koala and Notebook-拆边,BFS,贪心
CF1209F Koala and Notebook 题目描述 题解 我们将每条边拆成单字符的边,用vector存,然后贪心从0-9 BFS一遍即可 代码 #include<bits/stdc++.h> #define int long long #define M 1000000 using namespace std; vector<int>w[M][10],q[M]...原创 2020-03-29 10:55:08 · 209 阅读 · 0 评论