社区讨论
0分求调
B2056求整数的和与均值参与者 2已保存回复 5
讨论操作
快速查看讨论及其快照的属性,并进行相关操作。
- 当前回复
- 5 条
- 当前快照
- 1 份
- 快照标识符
- @mm72atxi
- 此快照首次捕获于
- 2026/03/01 09:19 上周
- 此快照最后确认于
- 2026/03/03 15:40 5 天前
CPP
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin>>n;
int a,b,c,d;
cin>>a>>b>>c>>d;
double e=a+b+c+d;
double f=(a+b+c+d)/n;
cout<<e;
cout<<' ';
printf("%.5f",f);
return 0;
}
回复
共 5 条回复,欢迎继续交流。
正在加载回复...