题解 2794: 求平均年龄

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

筛选

编写题解 2794: 求平均年龄

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main() {    int n;    scanf("%d", &n);    int a[n];    for (int……

2794: 求平均年龄

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    long long n;    double b=0……

2025/7/25刷题记录

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int student_sum; double ……

题解 2794: 求平均年龄

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int a,b[100]; float sum=0; s……

简易,易懂

摘要:解题思路:注意事项:参考代码:int main (){    int n;    float sum=0;    scanf ("%d",&n);    float a[n];    for (int……

用数组求平均年龄

摘要:解题思路:看到别人题解可以用double a 来代替int a[100];注意事项:参考代码:#include<stdio.h>int main(){    int n;    int sum = 0……