結果
| 問題 |
No.1993 Horse Racing
|
| コンテスト | |
| ユーザー |
keisuke6
|
| 提出日時 | 2022-07-01 21:28:18 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 303 bytes |
| コンパイル時間 | 2,455 ms |
| コンパイル使用メモリ | 243,172 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-26 03:49:10 |
| 合計ジャッジ時間 | 3,185 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 23 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define double long double
signed main(){
double ans = 1000;
int N;
cin>>N;
for(int i=0;i<N-1;i++){
double x;
cin>>x;
ans *= ((1000-x)*1.0/1000);
}
cout<<fixed<<setprecision(15);
cout<<1000-ans<<endl;
}
keisuke6