結果
| 問題 |
No.1993 Horse Racing
|
| コンテスト | |
| ユーザー |
沙耶花
|
| 提出日時 | 2022-07-01 21:24:32 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 467 bytes |
| コンパイル時間 | 4,298 ms |
| コンパイル使用メモリ | 251,788 KB |
| 最終ジャッジ日時 | 2025-01-30 02:13:23 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 23 |
ソースコード
#include <stdio.h>
#include <bits/stdc++.h>
#include <atcoder/all>
using namespace atcoder;
using mint = modint998244353;
using namespace std;
#define rep(i,n) for (int i = 0; i < (n); ++i)
#define Inf 1000000001
int main(){
int N;
cin>>N;
vector<int> a(N-1);
rep(i,N-1)cin>>a[i];
double v = 1.0;
rep(i,N-1){
v *= 1000.0 - a[i];
v /= 1000.0;
}
double ans = 1000.0;
ans -= 1000.0 * v;
cout<<fixed<<setprecision(10)<<ans<<endl;
return 0;
}
沙耶花