![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
贪心
Daniel__d
这个作者很懒,什么都没留下…
展开
-
元素-线性基,贪心
P4570题目描述题解代码#include<bits/stdc++.h>#define M 100009#define int long longusing 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 · 129 阅读 · 0 评论 -
Koala and Notebook-拆边,BFS,贪心
CF1209F Koala and Notebook题目描述题解我们将每条边拆成单字符的边,用vector存,然后贪心从0-9 BFS一遍即可代码#include<bits/stdc++.h>#define int long long#define M 1000000using namespace std;vector<int>w[M][10],q[M]...原创 2020-03-29 10:55:08 · 163 阅读 · 0 评论