此答案一定对—+—
2025-06-02 15:45:04
发布于:浙江
#include<iostream>
#include<cstdio>
using namespace std;
int main(){
int n;
cin>>n;
for(int i=1;i<=n;i++){
double a,b,c,d;
cin>>a>>b>>c>>d;
cout<<a<<' '<<b<<' '<<c<<' '<<d<<' '<<b+c+d<<' ';
printf("%.2f\n",(b+c+d)/3);
}
return 0;
}
全部评论 2
=-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-= =-=
2025-06-02 来自 浙江
0?
2025-06-02 来自 浙江
0
的却
2025-06-02 来自 浙江
0对
2025-06-02 来自 浙江
0
有帮助,赞一个