結果

問題 No.275 中央値を求めよ
コンテスト
ユーザー paranormal22
提出日時 2025-10-31 22:59:39
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 289 bytes
コンパイル時間 1,796 ms
コンパイル使用メモリ 194,500 KB
実行使用メモリ 7,720 KB
最終ジャッジ日時 2025-10-31 22:59:43
合計ジャッジ時間 3,321 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 8 WA * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
#define endl '\n'
#define MAXN 100000
using namespace std;

int main()
{
    int n, sum = 0, cnt = 0;
    cin >> n;
    while(n--)
    {
        int x;
        cin >> x;
        cnt++;
        sum += x;
    }

    cout << (double)sum / cnt << endl;

    return 0;
}
0