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 1306. Sequence Median

Wrong answer?!?!
Posted by Cross 30 Jan 2011 21:07
#include <iostream>

using namespace std;

void main()
{
    int N,i,tmp;
    float y=0;
    cin>>N;
    for (i=1;i<=N;i++)
    {
        cin>>tmp;
        y+=tmp;
    }
    y/=N;
    printf("%0.1f",y);
}
Re: Wrong answer?!?!
Posted by lihaitao 27 May 2011 12:14
I think you misunderstood the problem.What you caculated is the mean or average of the data ,Not the median.If you don't know what the median means,Please read the problem again carefully.