ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1457. Heating Main

Here my solution
Posted by yaho0o0 19 Mar 2009 13:46
#include <iostream>
#include <stdio.h>
using namespace std;
int main()
{
    int i,n,a;
    double o=0;
    cin>>n;
    for(i=1;i<=n;i++)
    {
        cin>>a;
        o+=a;
    }
    o/=n;
    fprintf(stdout,"%.6lf ",o);
    cout<<endl;
    return 0;
}

Edited by author 07.04.2009 21:17
No subject
Posted by yaho0o0 21 Mar 2009 02:09


Edited by author 08.04.2009 12:58
No subject
Posted by yaho0o0 8 Apr 2009 12:57