結果
問題 |
No.475 最終日 - Writerの怠慢
|
ユーザー |
![]() |
提出日時 | 2017-04-10 23:19:50 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 531 bytes |
コンパイル時間 | 1,553 ms |
コンパイル使用メモリ | 166,484 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-18 05:46:47 |
合計ジャッジ時間 | 2,358 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 5 WA * 10 |
ソースコード
#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; }