結果

問題 No.475 最終日 - Writerの怠慢
ユーザー けーけー
提出日時 2017-04-10 23:19:50
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 531 bytes
コンパイル時間 1,404 ms
コンパイル使用メモリ 165,452 KB
実行使用メモリ 4,500 KB
最終ジャッジ日時 2023-09-25 06:56:10
合計ジャッジ時間 2,509 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,376 KB
testcase_01 AC 1 ms
4,380 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 22 ms
4,380 KB
testcase_13 AC 22 ms
4,376 KB
testcase_14 AC 2 ms
4,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
#define int long long
const int inf=8938103643641919514ll;
const int mod=1000000007ll;
const int dd[]={0,-1,0,1,0};
using namespace std;
int a,b,c,d;
struct Node{
	int n=0;
	vector<int> e;
};
Node *ppp;
int p[114514];
signed main(){
	int i,j,k;
	cin>>a>>b>>c;
	for(i=0;i<a;i++)
		cin>>p[i];
	d=p[c]+50*b;
	double ans=1;
	for(i=0;i<a;i++){
		if(p[i]<=p[c])
			continue;
		int x=d-p[i];
		int y=250*b/x-3;
		if(y<1){
			ans=0;
			break;
		}
		ans*=(double)(a-y)/(a-1);
	}
	cout<<setprecision(15)<<ans<<endl;
}
0