結果
| 問題 |
No.1993 Horse Racing
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-07-01 21:53:19 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 297 bytes |
| コンパイル時間 | 1,952 ms |
| コンパイル使用メモリ | 194,420 KB |
| 最終ジャッジ日時 | 2025-01-30 02:44:45 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 23 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
using ll=long long;
using Re=double;
int main(){
int n;
cin>>n;
vector<int> a(n);
for(int i=0;i<n;i++) cin>>a[i];
double mn=1000;
for(int i=0;i<n;i++) mn*=(Re)(1000-a[i])/1000;
cout<<fixed<<setprecision(10)<<1000-mn<<endl;
}