#include<iostream> #include<iomanip> using namespace std ; int main() { int n; while(cin>>n) { int score, score_sum = 0; for(int i=0;i<n;i++) { cin>>score ; score_sum+=score; } double ave_score = (score_sum * 1.0) / n ; cout<<setiosflags(ios::fixed)<<setprecision(2)<<ave_score<<" "; int ave = (int)(ave_score) ; // 雙精度型強制轉化為整形 ave = ( (ave + 5) / 10 ) * 10 ; //對整形進行四捨五入 cout << ave << endl ; } return 0 ; }