![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ccf试题
历年ccf考试题
PourVous
这个作者很懒,什么都没留下…
展开
-
CCF202009-2风险人群筛查
#include <bits/stdc++.h>using namespace std;int main(){int n,k,t,x1,y1,x2,y2;cin >> n >> k >> t >> x1 >> y1 >> x2 >> y2;int ans1 = 0;int ans2 = 0;for(int i = 0;i < n;i++){bool flag = false;vector原创 2020-10-16 17:25:31 · 154 阅读 · 0 评论 -
CCFCSP 送货(70)
#include<iostream>#include<queue>#include <bits/stdc++.h>using namespace std;int n,m;const long long INF = 1e9;vector<int> g[10005];bool visited1[10005][10005];bool flag = false;int ans1[100005];void dfs(int x,int temp[],原创 2020-09-02 15:25:25 · 173 阅读 · 0 评论 -
CCFCSP201903-3 试题名称: 损坏的RAID5(不知道为啥就过了)
#include <bits/stdc++.h>using namespace std;string temps[1005];int main(){ ios::sync_with_stdio(0); int n,s,l;cin >> n >> s >> l; for(int i = 0;i < l;i++){ int t;cin >> t; cin >> temps[t]; } int m;cin >原创 2020-08-31 17:44:15 · 169 阅读 · 1 评论 -
ccf 201903-5 317号子任务【60分】
#include<bits/stdc++.h>using namespace std;struct node{ int u; int x;};vector<node> g[10005];int n,m,k;vector<int> ju_dian;long long dis1[10005];vector<long long> dis2[10005];bool visited[10005];const long long INF原创 2020-08-21 18:24:37 · 143 阅读 · 0 评论 -
CCFCSP压缩编码
#include<iostream>#include<vector>#include<queue>#include<cstdio>using namespace std;int n;const int INF = 999999999;int a[1005];int dp[1005][1005];int sum[1005];int main(){ cin >> n; for(int i = 1;i <= n原创 2020-08-19 12:21:55 · 266 阅读 · 0 评论 -
CCF CSP 201312-5 试题名称: I’m stuck!
#include<bits/stdc++.h>using namespace std;char maze[105][105];bool visited[105][105];int xx[10] = {1,-1,0,0};int yy[10] = {0,0,1,-1};int n,m;struct node{ int x; int y;};vector<node> t;bool flag = false;void bfs(int x,int y,i原创 2020-08-11 10:22:50 · 330 阅读 · 0 评论 -
试题编号: 201403-4 试题名称: 无线网络
#include<bits/stdc++.h>using namespace std;struct node{ long long x; long long y; int step; int rest_k;};bool visited[1005];int xx[1005];int yy[1005];int sx,sy,fx,fy;int main(){ ios::sync_with_stdio(0); long long r;原创 2020-08-09 09:59:21 · 201 阅读 · 1 评论 -
CCF CSP 201403-2 试题名称: 窗口
#include<bits/stdc++.h>using namespace std;int maze[2600][1500];int x1[15];int y1[15];int x2[15];int y2[15];int main(){ ios::sync_with_stdio(0); int n,m;cin >> n >> m; for(int i = 1;i <= n;i++){ int a,b,c,d;c原创 2020-08-09 09:33:20 · 187 阅读 · 0 评论 -
ccf2016-09-04
#include<bits/stdc++.h>using namespace std;struct node{ int u; int dis;};bool visited[100005];const int INF = 99999999;int dis[100005];int cost[100005];vector<node> g[1000005];int n,m;void spfa(){ for(int i = 0;i < n;i+原创 2020-07-21 17:57:19 · 91 阅读 · 0 评论 -
ccf201609-2
#include<bits/stdc++.h>using namespace std;bool visited[1005];int main(){ ios::sync_with_stdio(0); int n; cin >> n; for(int i = 0;i < n;i++){ int t; cin >> t; bool flag = false; for(in原创 2020-07-21 17:02:58 · 127 阅读 · 0 评论 -
2016-12-3 ccf 权限查询
#include<bits/stdc++.h>using namespace std;set<string> private_names;set<string> private_levels;struct role{ set<string> private1; map<string,int> private2;};map<string,role> map1;map<string,vector<.原创 2020-07-20 14:47:26 · 100 阅读 · 0 评论 -
CCFCSP推荐系统
此题有一个大坑id范围为1e9此题题意是按照同类按照价格大小从大到小输出,如果价格相等再按照id从小到大输出。#include<bits/stdc++.h>using namespace std;struct node{ int id; int score; int type; int sell; bool friend oper...原创 2020-04-24 16:53:54 · 306 阅读 · 0 评论 -
CCF通信网络
每个点能达到的点数为n-1,那么这个点就满足条件。此题目有环因此设置一个maze[1005][1005]判断之前a到b是否已经基数,也可不设判断tt[a]+tt[b] >= n - 1;此题与poj3660相似poj3360(vj上的)#include<iostream>#include <map>#include <vector>#i...原创 2020-04-11 18:38:50 · 214 阅读 · 0 评论 -
ccf 201803-2 碰撞的小球
戳这里不可能会有三个小球碰撞。#include <bits/stdc++.h>using namespace std;const int INF = 999999999;struct node{ int x; int b; int pos;};node a[1005];bool cmp1(node a,node b){ retur...原创 2020-03-28 11:18:36 · 97 阅读 · 0 评论