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