結果
問題 |
No.1993 Horse Racing
|
ユーザー |
|
提出日時 | 2022-07-15 16:32:36 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 354 bytes |
コンパイル時間 | 1,634 ms |
コンパイル使用メモリ | 168,320 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-27 11:12:00 |
合計ジャッジ時間 | 2,734 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 23 |
ソースコード
#include <bits/stdc++.h> #define ll long long using namespace std; #define all(v) v.begin(), v.end() int main() { int N; cin>>N; vector<double> input(N-1); for(int i=0;i<N-1;i++)cin >> input[i]; double kyori=1000; for(int i:input){ kyori = kyori * (1000.0-i) / 1000.0; } cout << fixed << 1000.0 - kyori << endl; }