疑似因为过臭而全RE

B2054 求平均年龄

lcy20100722 @ 2024-12-24 16:34:06

#include<bits/stdc++.h>
using namespace std;
int main()
{   
    double a=114514,q=114514;
    int b=114514,c[114514];
    cin>>a;
    for(q=0,b=1;b<=a;b++)
    {
        cin>>c[b];
        q=q+c[b];
    }
    cout<< fixed<<setprecision(2)<<q/a;
    return 114514;
}

by tyr_04 @ 2024-12-24 16:36:08

@lcy20100722

returnn 114514; 包会祭的


by Grammar__hbw @ 2024-12-24 16:38:07

@lcy20100722 return值必须是0(其实是256的倍数也行,试试return 998244352


|