#32940: ans


yp11151049@yphs.tp.edu.tw (801-24)

學校 : 臺北市私立延平高級中學
編號 : 197224
來源 : [203.72.178.1]
最後登入時間 :
2024-01-16 09:26:24
d786. 三、平均值 -- 99學年度板橋高中校內資訊學科能力競賽 | From: [203.72.178.2] | 發表日期 : 2022-11-18 13:22

#include<bits/stdc++.h>
using namespace std;
int main(){
    int T,n;
    cin>>T;
    while(T>0){
        cin>>n;
        double t,sum=0;
        for(int i=0;i<n;i++){
            cin>>t;
            sum+=t;            
        }
        cout<<fixed<<setprecision(2)<<sum/n<<endl;
        T--;
    }    
}

 
#33510: Re: ans


yp11151138@yphs.tp.edu.tw (801-34許劭頎)

學校 : 臺北市私立延平高級中學
編號 : 197089
來源 : [123.193.248.240]
最後登入時間 :
2024-04-25 17:06:38
d786. 三、平均值 -- 99學年度板橋高中校內資訊學科能力競賽 | From: [203.72.178.1] | 發表日期 : 2023-01-11 17:08

bruh



 
ZeroJudge Forum