![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
CCF
Minion_w
这个作者很懒,什么都没留下…
展开
-
CCF 201509-4 高速公路 80分
#include<bits/stdc++.h> using namespace std; const int maxn = 10010; struct Edge{ int v1, v2; bool operator < (const Edge & e) const{ if(v1 == e.v1) return v...原创 2019-12-10 09:56:10 · 169 阅读 · 1 评论 -
CCF 201512-3 画图
#include<bits/stdc++.h> using namespace std; char Map[110][110]; bool vis[110][110]; int dx[4] = {0, 0, 1, -1}; int dy[4] = {1, -1, 0, 0}; int m, n; void DFS(int x, int y, char C) { if(Map[...原创 2019-12-04 21:34:02 · 136 阅读 · 0 评论 -
CCF 201903-5 317号子任务 30分
#include<bits/stdc++.h> using namespace std; const int maxn = 10010; const int INF = 0x3f3f3f3f; bool Is_im[maxn]; int Map[maxn][maxn]; int main() { int n, m, K; scanf("%d %d %d", &...原创 2019-12-03 22:06:03 · 217 阅读 · 0 评论 -
CCF——201903-4消息传递接口 90分
#include<bits/stdc++.h> using namespace std; const int maxn = 10010; struct Node{ char op; int from, to; }; bool dis[maxn]; int S_v[maxn]; vector<queue<Node> >vec; int T, n...原创 2019-12-02 09:11:39 · 221 阅读 · 0 评论 -
CCF 炉石传说
#include<bits/stdc++.h> using namespace std; typedef struct Node{ int health; int attack; }; void init(vector<Node> & v) { Node n1; n1.attack = 0; n1.health = 30...原创 2019-09-08 11:45:52 · 248 阅读 · 0 评论 -
CCF 交通规划
#include<bits/stdc++.h> using namespace std; const int maxn = 100010; const int INF = 0x3f3f3f3f; typedef struct Edge{ int to; //终点 int dis; //花费 bool operator < (const Edge&...原创 2019-09-08 17:36:36 · 206 阅读 · 0 评论 -
CCF 权限查询
#include<bits/stdc++.h> using namespace std; typedef struct Privilege{ string category; int level; }; vector<Privilege> p_v; map<string, vector<Privilege> > Role; map&...原创 2019-09-09 17:23:25 · 205 阅读 · 0 评论 -
CCF 压缩编码
#include<bits/stdc++.h> using namespace std; const int maxn = 1010; int num[maxn]; int sum[maxn]; int dp[maxn][maxn]; int main() { memset(num, 0, sizeof(num)); memset(sum, 0, sizeof(su...原创 2019-09-09 21:38:58 · 205 阅读 · 0 评论 -
CCF markDown
求改错啊,怎么改就是60分,测了很多组样例,就是不对,救命啊 #include<bits/stdc++.h> using namespace std; vector<string> v_s; void solve_h(string &s) { int hx = 0, i; int len = s.size(); for(i = 0; ...原创 2019-09-11 20:46:48 · 316 阅读 · 0 评论