結果
| 問題 |
No.275 中央値を求めよ
|
| コンテスト | |
| ユーザー |
troro_kelp
|
| 提出日時 | 2018-06-06 21:44:22 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 272 bytes |
| コンパイル時間 | 566 ms |
| コンパイル使用メモリ | 58,388 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-06-30 10:21:59 |
| 合計ジャッジ時間 | 1,654 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 8 WA * 30 |
ソースコード
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main(){
vector<int> v;
int n; double sum=0; cin >> n;
for(int i=0; i<n; ++i){
int a; cin >> a;
sum += a;
}
cout << sum/(double)n << endl;
return 0;
}
troro_kelp