結果
| 問題 |
No.1134 Deviation Score Ⅱ
|
| ユーザー |
umezo
|
| 提出日時 | 2020-07-28 05:01:56 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 440 bytes |
| コンパイル時間 | 1,977 ms |
| コンパイル使用メモリ | 195,280 KB |
| 最終ジャッジ日時 | 2025-01-12 07:05:16 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 23 WA * 4 |
ソースコード
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define ALL(v) v.begin(), v.end()
typedef long long ll;
#include <bits/stdc++.h>
using namespace std;
int main(){
int n,m;
cin>>n;
vector<int> A(n);
rep(i,n) cin>>A[i];
cin>>m;
double s,e,a=0,b=0;
rep(i,n) a+=A[i];
e=a/n;
rep(i,n) b+=(A[i]-e)*(A[i]-e);
s=sqrt(b/n);
double c=50+(A[m-1]-e)*10/s;
int ans=floor(c)+0.5;
cout<<ans<<endl;
return 0;
}
umezo