题解 1635: 蓝桥杯算法训练VIP-整数平均值

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

蓝桥杯算法训练VIP-整数平均值(指针)

摘要:解题思路:注意事项:参考代码:// 包含标准输入输出库 #include <stdio.h> // 定义一个函数myave,用于计算整数数组a的平均值 // 参数a是整数数组的首地址,sz是……

WU-整数平均值 (C++代码)

摘要:解题思路:用指针操作数组元素参考代码:#include<iostream> using namespace std; int a[1000]; void f(int a[],int n) {……

函数求整数平均值

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int ave(int a[],int n){ int sum=0; for(int……

整数平均值 1635

摘要:解题思路:注意事项:尽量少用//,代用int 强制类型转换参考代码:将输入的整数用列表储存,用内置函数求和,然后再求平均值,直接输出n=int(input())list1=(map(int,input……