結果

問題 No.275 中央値を求めよ
ユーザー r2en_
提出日時 2017-03-01 17:16:10
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 257 bytes
コンパイル時間 546 ms
コンパイル使用メモリ 64,372 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-12 22:10:04
合計ジャッジ時間 1,919 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 8 WA * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;

int main(void){
    int n;
    int *A;
    float sum = 0;
    cin >> n;
    A = new int[n];
    for(int i = 0; i < n; i++){
        cin >> A[i];
        sum+=A[i];
    }
    cout << sum / n << endl;
    return(0);
}
0