![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
CCF认证考试
策马奔腾向前冲
这个作者很懒,什么都没留下…
展开
-
CCF认证 201912-3 化学方程式
#include <bits/stdc++.h>using namespace std;unordered_map<string,int>solve(vector<string>&words){ unordered_map<string, int>ans; for(string word:words){ ...原创 2020-01-22 14:27:23 · 255 阅读 · 0 评论 -
CCF认证 201909-1 小明种苹果
#include <iostream>using namespace std;int main(){ int n,m; int T=0,k=1,p=0; scanf("%d%d",&n,&m); for(int i=1;i<=n;i++){ int x,y,tempSum=0; scanf("...原创 2019-11-04 18:35:48 · 175 阅读 · 0 评论 -
CCF认证 201909-2 小明种苹果(续)
#include <iostream>using namespace std;int flag[1005];int main(){ //freopen("1.txt","r",stdin); int n,m; int T=0,D=0,E=0; scanf("%d",&n); for(int i=0;i<n;i++){ ...原创 2019-11-04 21:49:42 · 154 阅读 · 0 评论 -
CCF认证 201909-3 字符画
把转化为字符串string(1, char(27)#include <iostream>#include <cstring>using namespace std;const int N = 2000;struct color{ int R, G, B; color(){} color(int R, int G, int B){ this -> R = R, this -> G = G, this -> .原创 2020-06-04 20:27:55 · 301 阅读 · 0 评论 -
CCF认证 201903-1 小中大
#include <iostream>#include <algorithm>using namespace std;const int maxn = 1e5+10;int A[maxn];int main(){ int n; scanf("%d",&n); for(int i=0;i<n;i++) sca...原创 2019-10-24 20:24:48 · 137 阅读 · 0 评论 -
CCF认证 201903-2 二十四点
二十四点#include <bits/stdc++.h>using namespace std;string str;stack<int>num;stack<char>op;//栈中维护了一个优先级递增的序列void solve(){ int a=num.top();num.pop(); int b=num.top();num.p...原创 2019-10-01 10:23:03 · 124 阅读 · 0 评论 -
CCF认证 201903-3 损坏的RAID5
#include <iostream>#include <cstring>#include <iomanip>using namespace std;const int N = 1e7;struct { int id, pos;}block[N];//id为当前块所在的盘号,pos为当前块所在的相对位置string disk[1010];int n, s, l, blockCnt;int toDec(string str){ int res = .原创 2020-06-05 16:51:31 · 189 阅读 · 0 评论 -
CCF认证 201903-4 消息传递接口
#include <iostream>#include <queue>#include <list>#include <unordered_set>#include <cstring>using namespace std;int main(){ //freopen("1.txt","r",stdin); i...原创 2019-11-05 16:53:10 · 169 阅读 · 0 评论 -
CCF认证 201812-1 小明上学
#include <iostream>using namespace std;int main(){ int r,y,g; scanf("%d%d%d",&r,&y,&g); int n,cnt=0,k,x; scanf("%d",&n); while(n--){ scanf("%d%d",&...原创 2019-11-06 20:34:33 · 131 阅读 · 0 评论 -
CCF认证 201812-2 小明放学
#include <iostream>using namespace std;int main(){ // freopen("1.txt","r",stdin); int A[3]; //A[0]为红灯,A[1]为绿灯,A[2]为黄灯 int n,k,t,total=0; scanf("%d%d%d%d",&A[0],&...原创 2019-03-15 23:24:48 · 164 阅读 · 0 评论 -
CCF认证 201812-3 CIDR合并
#include <iostream>#include <algorithm>#include <cstring>#include <vector>using namespace std;const int N = 100005;int cnt;struct IP{ string info; unsigned int val; int a[4], len; bool operator< (const IP.原创 2020-06-06 21:09:16 · 285 阅读 · 0 评论 -
CCF认证 201809-1 卖菜
#include <iostream>using namespace std;int A[1005];int main(){ int n; scanf("%d",&n); for(int i=0;i<n;i++) scanf("%d",&A[i]); printf("%d",(A[0]+A[1])/2); ...原创 2019-11-06 20:14:36 · 84 阅读 · 0 评论 -
CCF认证 201809-2 买菜
#include <iostream>using namespace std;int A[1000005];int main(){ int n,x,y,cnt=0; scanf("%d",&n); for(int i=0;i<n;i++){ scanf("%d%d",&x,&y); for(i...原创 2019-11-06 20:11:20 · 108 阅读 · 0 评论 -
CCF认证 201809-4 再卖菜
#include <iostream>using namespace std;const int maxn = 310;int B[maxn],A[maxn];bool f[maxn][maxn][maxn];int n;void dfs(int t,int x,int y){//x为A[t-1],y为A[t] if(f[t][x][y]) return; ...原创 2019-12-15 11:12:39 · 122 阅读 · 0 评论