Advertisement
rengetsu

Baltic_ACM_ICPC_K

Oct 12th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.30 KB | None | 0 0
  1. // Baltic ACM ICPC K
  2. #include <iostream>
  3. #include <iomanip>
  4. using namespace std;
  5. int main()
  6. {
  7.     double n, g, sum, ats;
  8.     cin >> n;
  9.     for(int i=0;i<n;i++)
  10.     {
  11.         cin >> g;
  12.         sum+=g;
  13.     }
  14.     ats=sum/n;
  15.     cout << fixed << setprecision(12) << ats << endl;
  16.     return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement