CCF解题
预计逐步更新CCF题目C语言解法
SpiderPi
这个作者很懒,什么都没留下…
展开
-
CCF 201909-02(小明种苹果续)
题目信息:首页 - 计算机软件能力认证考试系统#include<stdio.h>#include<string.h>#include<stdlib.h>//小明种苹果(续)void appleXM2(){ int n, m, i, n1; int t = 0, d = 0, e = 0, num, tmp;//剩余数 掉落树...原创 2020-03-20 13:49:49 · 240 阅读 · 0 评论 -
CCF 201909-01(小明种苹果)
题目信息:参考链接#include<stdio.h>#include<string.h>#include<stdlib.h>typedef struct{ int x; int y;}point, *pot;int appleXM(){ int n, m, i, num = 0, tmp, rev;//棵树 轮数...原创 2020-03-04 00:35:17 · 118 阅读 · 0 评论 -
CCF 201803-03(URL映射)wait
题目信息:参考链接#include<stdio.h>#include<stdlib.h>#include<string.h>typedef struct{ char name[100]; char num[100];}rule;void urlMap();char *strApt(char *str);void putR...原创 2020-03-01 12:20:47 · 199 阅读 · 0 评论 -
CCF 201803-02(碰撞的小球)
题目信息:参考链接#include<stdio.h>#include<stdlib.h>#include<string.h>//碰撞的小球 0 - Lvoid ball(){ int n, L, t, i, x, y; int *sign; char *flag; scanf("%d %d %d", &...原创 2020-02-29 20:10:10 · 106 阅读 · 0 评论 -
CCF 201803-01(跳一跳)
题目信息:参考链接#include<stdio.h>#include<stdlib.h>#include<string.h>void jump(){ int cur, pre, flag = 0, score = 0; while(scanf("%d", &cur), cur != 0){ //第一个 ...原创 2020-02-29 18:56:36 · 103 阅读 · 1 评论 -
CCF 201912-03(化学方程式)-待完善
题目信息:参考链接吐槽:机试要求使用C,本想着找题练练手,结果代码越写越长。。。。。。#include<stdio.h>#include<string.h>#include<stdlib.h>typedef struct{ int x; int y;}point, *pot;void H2O();pot clearS...原创 2020-02-29 11:26:28 · 181 阅读 · 0 评论 -
CCF 201912-02(回收站选址)
题目信息typedef struct{ int x; int y;}point, *pot;void trash(){ int n, i, j, x, y, flag, sig; int stat[5] = {0}; pot p; scanf("%d", &n); p = (pot)malloc(sizeof(point...原创 2020-02-26 12:51:24 · 168 阅读 · 0 评论 -
CCF 201912-01(报数)
//01-报数void numStat(){ int a[4] = {0}; int n, cnt = 1, i = 0, jmp = 0;//优化 去除jmp scanf("%d", &n); while(i < n){ if(cnt % 7 == 0 || judge(cnt)){ a[jmp % 4]+...原创 2020-02-26 12:47:44 · 201 阅读 · 0 评论