题解 2794: 求平均年龄

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

筛选

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……

2794:求平均年龄

摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() {     int n,Y,i;     int h=0;     float y;     sca……

编写题解 2794: 求平均年龄

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){   int n;    cin >> n;    int sum = ……

求平均年龄 2794:

摘要:解题思路:#include <iostream>using namespace std;int main(){    int n;    double sum =0;    cin>>n;    fo……