Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Baltic ACM ICPC K
- #include <iostream>
- #include <iomanip>
- using namespace std;
- int main()
- {
- double n, g, sum, ats;
- cin >> n;
- for(int i=0;i<n;i++)
- {
- cin >> g;
- sum+=g;
- }
- ats=sum/n;
- cout << fixed << setprecision(12) << ats << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement