結果
| 問題 |
No.1993 Horse Racing
|
| コンテスト | |
| ユーザー |
myiru
|
| 提出日時 | 2022-07-02 08:12:16 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 296 bytes |
| コンパイル時間 | 1,749 ms |
| コンパイル使用メモリ | 166,972 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-26 20:58:35 |
| 合計ジャッジ時間 | 2,515 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 3 |
| other | AC * 1 WA * 22 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(){
int n,a[200];cin>>n;
for(int i=1;i<n;i++){
cin>>a[i];
}
double ans=1;
for(int i=1;i<n;i++){
int x=1000-a[i];
ans*=(double)(x/1000);
}
cout<<fixed<<setprecision(9)<<1000*(1-ans)<<endl;
}
myiru