結果
| 問題 |
No.1134 Deviation Score Ⅱ
|
| ユーザー |
|
| 提出日時 | 2020-07-29 18:32:44 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 255 bytes |
| コンパイル時間 | 508 ms |
| コンパイル使用メモリ | 67,968 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-29 21:40:34 |
| 合計ジャッジ時間 | 1,700 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 23 WA * 4 |
コンパイルメッセージ
main.cpp:7:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
7 | main()
| ^~~~
ソースコード
#include<iostream>
#include<cmath>
using namespace std;
int N;
int x[1<<17];
int M;
main()
{
cin>>N;
long s2=0,s=0;
for(int i=0;i<N;i++)
{
cin>>x[i];
s+=x[i];
s2+=x[i]*x[i];
}
cin>>M;M--;
cout<<(int)(50+10*(N*x[M]-s)/sqrt(N*s2-s*s))<<endl;
}