![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
复试练习—机试
mzr7765
这个作者很懒,什么都没留下…
展开
-
ccf201409-1相邻数对(c语言)
备注:dev上运行正常,但是ccf提交就一直编译错误,最后把int改成long int 就好使了,但是本来也没超过范围啊。。不知道为什么0.0 #include /* run this program using the console pauser or add your own getch, system(“pause”) or input loop */ int main(int argc, char** argv) { long int n,a[10000],i,j,k; k=0; scanf原创 2021-03-11 23:38:04 · 158 阅读 · 0 评论 -
ccf201403—1相反数(c语言)
#include /* run this program using the console pauser or add your own getch, system(“pause”) or input loop */ int main(int argc, char** argv) { long int n,a[10000],i,j,k; k=0; scanf("%d",&n); for(i=0;i<n;i++) { scanf("%d",&a[i]); } for(i=0;i&l.原创 2021-03-11 23:35:28 · 538 阅读 · 0 评论 -
ccf201312-1出现次数最多的数(c语言)
备注:t记录数字出现次数 m记录数字在数组中的位置 从大一学完c语言,再也没写过题了。。。心累,复试加油 #include <stdio.h> #include <stdlib.h> /* run this program using the console pauser or add your own getch, system(“pause”) or input loop */ int main(int argc, char *argv[]) { int n,a[1000],b[原创 2021-03-07 18:07:02 · 150 阅读 · 0 评论