#include <iostream> #include <iomanip> using namespace std; int main() { int n, m; int count = 0; cin >> n >> m; int l = n; while (l--) { int temp; cin >> temp; count += temp; } cout <<fixed<<setprecision(2)<< (double)count / (double)(n - m); system("pause"); return 0; }
点赞 评论

相关推荐

牛客网
牛客网在线编程
牛客网题解
牛客企业服务