蓝桥杯算法训练VIP-整数平均值 (C语言代码) 摘要:参考代码:#include <stdio.h> #include <malloc.h> int main() { int i,n,*a=NULL,sum=0; scanf("…… 题解列表 2018年02月01日 0 点赞 0 评论 945 浏览 评分:0.0
蓝桥杯算法训练VIP-整数平均值 摘要:解题思路:1.封装成函数,传入数据量n即可,函数返回平均值,2.函数通过循环获取输入,并累加求和,3.计算平均值,函数结果回传注意事项:此题要求得到平均值,但结果是一个整数,如例子给出的 3 4 0 …… 题解列表 2024年06月01日 0 点赞 0 评论 137 浏览 评分:0.0
C语言 1635 整数平均值 不用指针数组 摘要:参考代码:#include <stdio.h> #include <string.h> #include <math.h> #include <stdlib.h> #include <ctyp…… 题解列表 2024年04月15日 0 点赞 0 评论 126 浏览 评分:0.0
蓝桥杯算法训练VIP-整数平均值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[100]; int i; int b; int c=0; scanf("%…… 题解列表 2024年04月12日 0 点赞 0 评论 158 浏览 评分:0.0
1635(c语言解法) 摘要:解题思路: 1.创建数组 2.指针指向数组3.每拿到一个数据指针就往后移注意事项:参考代码:#include<stdio.h>#define maxsize 10int main(){ i…… 题解列表 2024年03月24日 0 点赞 0 评论 158 浏览 评分:0.0
整数平均值(报错) 摘要:解题思路:注意事项在这个代码运行时,报错error ld returned 1 exit status这个问题其实我代码本身没有问题,是因为我上一个代码运行结果未关闭造成的报错。error ld re…… 题解列表 2023年12月06日 0 点赞 0 评论 93 浏览 评分:0.0
蓝桥杯算法训练VIP-整数平均值 摘要:解题思路:没学指针就先不用注意事项:参考代码:#include<stdio.h>int main(){ int n,sum=0; scanf("%d",&n); int a[n]; for(int i…… 题解列表 2023年11月24日 0 点赞 0 评论 91 浏览 评分:0.0
蓝桥杯算法训练VIP-整数平均值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,sum; int a[n]; int i; scanf("%d",&…… 题解列表 2023年11月18日 0 点赞 0 评论 86 浏览 评分:0.0
求整数平均值 我这个最简单 但不知道错了没有 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define N 100int main(){ int sum = 0; int n = 0; int i = 0; int arr[…… 题解列表 2023年11月01日 0 点赞 0 评论 91 浏览 评分:0.0
蓝桥杯算法训练VIP-整数平均值-题解(C语言代码)在VS验证过 摘要:解题思路:用常规for使得一组数输入在一行内注意事项:参考代码:#define _CRT_SECURE_NO_WARNINGS#include<stdio.h>void qiuhe(int* p, …… 题解列表 2023年07月30日 0 点赞 0 评论 135 浏览 评分:0.0