提出 #39227553
ソースコード 拡げる
#include <bits/stdc++.h>
using namespace std ;
const int MAX = 1e5 + 10 ;
int arr[MAX] ;
int n ;
int main()
{
ios_base::sync_with_stdio(0) ;
cin.tie(0) ;
cin>>n ;
for(int i = 0 ; i < n*5 ; ++i)
cin>>arr[i] ;
sort(arr , arr + n*5) ;
long double ans = 0 ;
for(int i = n ; i < 4*n ; ++i)
ans += arr[i] ;
ans /= 3.00 * n ;
return cout<<fixed<<setprecision(12)<<ans<<"\n" , 0 ;
}
提出情報
| 提出日時 | |
|---|---|
| 問題 | B - Trimmed Mean |
| ユーザ | MohamedAhmed04 |
| 言語 | C++ (GCC 9.2.1) |
| 得点 | 200 |
| コード長 | 415 Byte |
| 結果 | AC |
| 実行時間 | 20 ms |
| メモリ | 3716 KiB |
ジャッジ結果
| セット名 | Sample | All | ||||
|---|---|---|---|---|---|---|
| 得点 / 配点 | 0 / 0 | 200 / 200 | ||||
| 結果 |
|
|
| セット名 | テストケース |
|---|---|
| Sample | example_00.txt, example_01.txt |
| All | example_00.txt, example_01.txt, hand_00.txt, hand_01.txt, hand_02.txt, hand_03.txt, hand_04.txt, hand_05.txt, random_00.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, random_09.txt, random_10.txt, random_11.txt, random_12.txt, random_13.txt, random_14.txt |
| ケース名 | 結果 | 実行時間 | メモリ |
|---|---|---|---|
| example_00.txt | AC | 20 ms | 3596 KiB |
| example_01.txt | AC | 2 ms | 3664 KiB |
| hand_00.txt | AC | 2 ms | 3636 KiB |
| hand_01.txt | AC | 2 ms | 3640 KiB |
| hand_02.txt | AC | 2 ms | 3616 KiB |
| hand_03.txt | AC | 2 ms | 3640 KiB |
| hand_04.txt | AC | 3 ms | 3580 KiB |
| hand_05.txt | AC | 2 ms | 3688 KiB |
| random_00.txt | AC | 2 ms | 3668 KiB |
| random_01.txt | AC | 2 ms | 3608 KiB |
| random_02.txt | AC | 2 ms | 3716 KiB |
| random_03.txt | AC | 3 ms | 3636 KiB |
| random_04.txt | AC | 3 ms | 3604 KiB |
| random_05.txt | AC | 2 ms | 3588 KiB |
| random_06.txt | AC | 5 ms | 3684 KiB |
| random_07.txt | AC | 3 ms | 3668 KiB |
| random_08.txt | AC | 2 ms | 3672 KiB |
| random_09.txt | AC | 2 ms | 3600 KiB |
| random_10.txt | AC | 2 ms | 3604 KiB |
| random_11.txt | AC | 2 ms | 3580 KiB |
| random_12.txt | AC | 2 ms | 3588 KiB |
| random_13.txt | AC | 3 ms | 3612 KiB |
| random_14.txt | AC | 3 ms | 3616 KiB |