CCF
CCF
咸鱼4号
如果文章有错误请指出,谢谢
展开
-
CCF认证 201409-3:字符串匹配(C++)
#include<iostream>#include<cstdio>#include<cstring>#include<algorithm>#include<cmath>#include<vector> using namespace std;const int N=1000;int fun(string a...原创 2020-03-26 16:24:22 · 257 阅读 · 0 评论 -
CCF认证 201312-3:最大的矩形(C++)
#include<iostream>#include<cstdio>#include<cstring>#include<algorithm>#include<cmath>using namespace std;const int N=1000;int main(){ int n,i,j,a[N]; long long...原创 2020-03-25 10:55:27 · 862 阅读 · 0 评论 -
CCF认证 201903-2: 二十四点(C++)
/* CCF201903-2 二十四点 */#include <stdio.h>/* 判定24点函数 */int judge(char s[]){ int a[4], i, j; char op[3]; /* 从输入取出数和运算符 */ for(i = 0; i < 4; i++) a[i] = s[i * 2]...原创 2020-03-24 11:10:09 · 395 阅读 · 0 评论 -
CCF认证 201909-2: 小明种苹果(续)(C++)(80分)
#include<iostream>#include<cstdio>#include<cstring>#include<algorithm>#include<cmath>using namespace std;const int N=1000;int a[N][N];int main(){ int n,i,j...原创 2020-03-24 11:22:53 · 394 阅读 · 0 评论 -
CCF认证 201912-2: 回收站选址(C++)
#include<iostream>#include<cstdio>#include<cstring>#include<algorithm>#include<cmath>using namespace std;const int N=1000;int a[N][2];int b[5];int main(){ ...原创 2020-03-21 11:33:59 · 234 阅读 · 0 评论 -
CCF认证 201803-2: 碰撞的小球(C++)
#include<iostream>#include<cstdio>#include<cstring>#include<algorithm>#include<cmath>using namespace std;const int N=1000;int main(){ int n,l,t,i,j,k,m,a[N],b...原创 2020-03-19 17:35:32 · 275 阅读 · 1 评论 -
CCF认证 201712-2:游戏(C++)
#include<iostream>#include<cstdio>#include<cstring>#include<algorithm>#include<cmath>using namespace std;const int N=1000;int main(){ int n,k,a[N],num=0,i,j,n1;...原创 2020-03-19 17:13:35 · 214 阅读 · 0 评论 -
CCF认证 201503-2:数字排序(C++)
#include <iostream>#include <string.h> using namespace std; int main() { int a[1005]; int n,num; int i,j; memset(a,0,sizeof(int)*1005); cin >> n; for (i=0;i<n;i++){ ...原创 2020-03-24 10:58:17 · 195 阅读 · 0 评论 -
CCF认证 201809-2:买菜(C++)
/* CCF201809-2 买菜 */#include <iostream>#include <cstdio>#include <cstring>using namespace std;const int N = 1000000;int cnt[N + 1];int main(){ int n, ai, bi; m...原创 2020-03-21 19:51:21 · 292 阅读 · 0 评论 -
CCF认证 201703-2:学生排队(C++)
#include<iostream>#include<cstdio>#include<cstring>#include<algorithm>#include<cmath>using namespace std;const int N=1000+10;int pos[N],que[N];int main(){ int ...原创 2020-03-24 11:27:14 · 199 阅读 · 0 评论 -
CCF认证 201612-2:工资计算(C++)(90分)
#include<iostream>#include<cstdio>#include<cstring>#include<algorithm>#include<cmath>using namespace std;int main(){ int s,a,i; double sum=0; cin>>s; if...原创 2020-03-16 16:20:37 · 179 阅读 · 0 评论 -
CCF认证 201609-2: 火车购票(C++)(90分)
#include<iostream>#include<cstdio>#include<cstring>#include<algorithm>#include<cmath>using namespace std;const int N=100;int main(){ bool a[N]; int i,j,k,n,num...原创 2020-03-24 11:22:04 · 195 阅读 · 1 评论 -
CCF认证 201512-2:消除类游戏(C++)
#include<iostream>#include<cstdio>#include<cstring>#include<algorithm>#include<cmath>const int N=1000;using namespace std;int a[N][N],b[N][N];int main(){ int ...原创 2020-03-14 18:57:51 · 229 阅读 · 0 评论 -
CCF认证 201509-2: 日期计算(C++)
#include<iostream>#include<cstdio>#include<cstring>#include<algorithm>#include<cmath>using namespace std;int main(){ int y,d,sum=0,i=0; cin>>y>>d;...原创 2020-03-14 18:02:20 · 207 阅读 · 0 评论 -
CCF认证 201409-2:画图(C++)
#include<iostream>#include<cstdio>#include<cstring>#include<algorithm>#include<cmath>using namespace std;const int N=1000;int main(){ bool vis[N][N]; int a,b,c...原创 2020-03-21 18:33:47 · 255 阅读 · 0 评论 -
CCF认证 201403-2: 窗口(C++)
#include<iostream>#include<cstdio>#include<cstring>#include<algorithm>#include<cmath>using namespace std;const int N=1000;int main(){ int a[N][4],x,y,b[10]; in...原创 2020-03-24 10:53:52 · 231 阅读 · 0 评论 -
CCF认证 201312-2: ISBN号码(C++)
#include<iostream>#include<cstdio>#include<cstring>#include<algorithm>#include<cmath>using namespace std;const int N=1000;int main(){ string s; cin>>s; ...原创 2020-03-15 15:20:44 · 296 阅读 · 0 评论 -
CCF认证 201912-1:报数(C++)
#include<iostream>#include<cstdio>#include<cstring>#include<algorithm>#include<cmath>using namespace std;const int N=1000;int fun(int n);int main(){ int i,a[N...原创 2020-03-08 16:26:57 · 207 阅读 · 0 评论 -
CCF认证 201909-1:小明种苹果(C++)
#include<iostream>#include<cstdio>#include<cstring>#include<algorithm>#include<cmath>using namespace std;const int N=1000;int main(){ int i,j,N,M,T,num,max=0,...原创 2020-03-08 16:08:46 · 238 阅读 · 0 评论 -
CCF认证 201812-1:小明上学(C++)
#include<iostream>#include<cstdio>#include<cstring>#include<algorithm>#include<cmath>using namespace std;const int N=1000;int main(){ int r,y,g,i,n,x,time,sum=...原创 2020-03-08 11:41:48 · 297 阅读 · 0 评论 -
CCF认证 201809-1:卖菜(C++)
#include<iostream>#include<cstdio>#include<cstring>#include<algorithm>#include<cmath>using namespace std;const int N=1000;int main(){ int a[N],n,i; cin>>...原创 2020-03-08 11:26:32 · 177 阅读 · 0 评论 -
CCF认证 201803-1:跳一跳(C++)
#include<iostream>#include<cstdio>#include<cstring>#include<algorithm>#include<cmath>using namespace std;const int N=1000;int main(){ int i,n,sum=0,m=1; for(i=...原创 2020-03-08 10:51:09 · 211 阅读 · 0 评论 -
CCF认证 201712-1:最小差值(C++)
#include<iostream>#include<cstdio>#include<cstring>#include<algorithm>#include<cmath>using namespace std;const int N=1000;int main(){ int a[N],i,n,min=0; memse...原创 2020-03-08 10:35:35 · 197 阅读 · 0 评论 -
CCF认证 201709-1:打酱油(C++)
#include<iostream>#include<cstdio>#include<cstring>#include<algorithm>#include<cmath>using namespace std;int main(){ int N,i,j,max=0,k; cin>>N; for(i=0;i...原创 2020-03-08 10:08:33 · 177 阅读 · 0 评论 -
CCF认证 201703-1:分蛋糕(C++)
#include<iostream>#include<cstdio>#include<cstring>#include<algorithm>#include<cmath>using namespace std;const int N=1000;int main(){ int a[N],n,k,i,sum=0,m=0;...原创 2020-03-08 09:50:17 · 320 阅读 · 0 评论 -
CCF认证 201612-1:中间数(C++)
#include<iostream>#include<cstdio>#include<cstring>#include<algorithm>#include<cmath>using namespace std;const int N=1000;int main(){ int a[N],n,i,num1,sum=0; ...原创 2020-03-07 21:00:21 · 191 阅读 · 0 评论 -
CCF认证 201609-1:最大波动(C++)
#include<iostream>#include<cstdio>#include<cstring>#include<algorithm>#include<cmath>using namespace std;const int N=1000;int main(){ int n,a[N],m=0,i,day; cin...原创 2020-03-07 17:12:28 · 181 阅读 · 0 评论 -
CCF认证 201604-1:折点计数(C++)
#include<iostream>#include<cstdio>#include<cstring>#include<algorithm>#include<cmath>using namespace std;const int N=1000;int main(){ int n,a[N],m=0,i; cin>...原创 2020-03-07 16:52:58 · 150 阅读 · 0 评论 -
CCF认证 201512-1:数位之和(C++)
#include<iostream>#include<cstdio>#include<cstring>#include<algorithm>#include<cmath>using namespace std;int main(){ int num,sum=0; cin>>num; while(num&g...原创 2020-03-07 16:42:13 · 209 阅读 · 0 评论 -
CCF认证 201509-1:数列分段(C++)
#include<iostream>#include<cstdio>#include<cstring>#include<algorithm>#include<cmath>using namespace std;const int N=1000;int main(){ int n,a[N],m=0,i,num1,num2...原创 2020-03-07 15:56:25 · 274 阅读 · 0 评论 -
CCF认证 201503-1:图像旋转(C++)
#include<iostream>#include<cstdio>#include<cstring>#include<algorithm>#include<cmath>using namespace std;const int N=1000+10;int a[N][N]; int main(){ int n,m;...原创 2020-03-15 14:48:33 · 162 阅读 · 0 评论 -
CCF认证 201412-1:门禁系统(C++)
#include<iostream>#include<cstdio>#include<cstring>#include<algorithm>#include<cmath>using namespace std;const int N=1000;int main(){ int a[N],b[N]; int i,n,nu...原创 2020-03-07 11:33:35 · 333 阅读 · 0 评论 -
CCF认证 201409-1:相邻数对(C++)
#include<iostream>#include<cstdio>#include<cstring>#include<algorithm>#include<cmath>using namespace std;const int N=1000;int main(){ int a[N]; int i,n,m=0; c...原创 2020-03-15 14:40:58 · 286 阅读 · 0 评论 -
CCF认证 201403-1:相反数(C++)
#include<iostream>#include<cstdio>#include<cstring>#include<algorithm>#include<cmath>using namespace std;const int N=1000;int main(){ int a[N]; int i,n,num1,m=...原创 2020-03-07 10:09:24 · 825 阅读 · 0 评论 -
CCF认证 201312-1:出现次数最多的数(C++)
#include<iostream>#include<cstdio>#include<cstring>#include<algorithm>#include<cmath>using namespace std;const int N=10000;int main(){ int a[N]; int i,n,num1;...原创 2020-03-07 09:45:50 · 596 阅读 · 0 评论