結果
| 問題 |
No.1134 Deviation Score Ⅱ
|
| ユーザー |
|
| 提出日時 | 2020-07-29 18:30:03 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 269 bytes |
| コンパイル時間 | 516 ms |
| コンパイル使用メモリ | 67,404 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-29 21:31:56 |
| 合計ジャッジ時間 | 1,677 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 15 WA * 12 |
コンパイルメッセージ
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<<50+(N*s2!=s*s?(int)(10*(N*x[M]-s)/sqrt(N*s2-s*s)):0)<<endl;
}