![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
CCF
SaltedFish00
这个作者很懒,什么都没留下…
展开
-
CCF小中大(C语言版)
80分可能错误·:忽略n为偶数是中位数四舍五入 (保留一位小数!n为1时 三个值一样#include <stdio.h>int a[100000];int main(){ int n,i,j,fab,m,max,min,middle; float b; scanf("%d",&n); for(i=0;i<n;i++) ...原创 2019-07-26 09:58:54 · 1169 阅读 · 2 评论 -
【CCF 201903-2 二十四点】为什么在DEVC++和CODEBLOCK都能运行成功,在CCF显示运行错误?
#include <iostream>#include <stdlib.h>#include <malloc.h>using namespace std;typedef struct st1{ char biaodashi[7];//1 中缀转后缀时存运算符 2 存储后缀 int top;}*CharStack;typedef ...原创 2019-07-27 15:20:59 · 830 阅读 · 0 评论 -
CCF二十四点
思路:该题运算符有优先级堆栈 先转为后缀表达式注意:1、程序没有编译或编译不成功,运行的结果只能是上一次成功编译程序的结果(重启软件)2、c语言没有string和bool类型,要通过引用头文件等方式,间接使用3、由于可以无限读取,所以在2011年12月,ANSI 采纳了 ISO/IEC 9899:2011 标准,标准中删除了 gets()函数,使用一个新的更安全的函数gets_s()替...原创 2019-07-28 12:13:58 · 312 阅读 · 0 评论 -
CCF练习
跳一跳#include <iostream>/* run this program using the console pauser or add your own getch, system("pause") or input loop */using namespace std;int a[1000000]={0};int main(int argc, char** a...原创 2019-08-24 20:48:02 · 393 阅读 · 0 评论 -
CCF练习笔记
门禁系统开辟两个数组,一个存读者编号,另一个存来访次数,下标相对应判断来过几次:从后往前对比读者编号,若相等,来访次数为在其来访次数上加一#include <iostream>/* run this program using the console pauser or add your own getch, system("pause") or input loop */...原创 2019-09-24 14:19:56 · 122 阅读 · 0 评论