結果
問題 | No.275 中央値を求めよ |
ユーザー |
![]() |
提出日時 | 2018-06-13 19:22:09 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 188 bytes |
コンパイル時間 | 505 ms |
コンパイル使用メモリ | 61,000 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-30 14:09:24 |
合計ジャッジ時間 | 1,648 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 38 |
ソースコード
#include<iostream> #include<algorithm> using namespace std; int main() { int n,a[1010]; cin >> n,a; sort(a,a + n); cout << (a[n/2]+a[(n-1)/2])/2.0 << endl; return 0; }