結果
問題 | No.1993 Horse Racing |
ユーザー |
![]() |
提出日時 | 2024-05-29 15:06:58 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 381 bytes |
コンパイル時間 | 1,959 ms |
コンパイル使用メモリ | 192,204 KB |
最終ジャッジ日時 | 2025-02-21 17:07:53 |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 23 |
ソースコード
#include <bits/stdc++.h>using namespace std;void fast_io() {ios_base::sync_with_stdio(false);cin.tie(nullptr);}int main() {fast_io();int n;cin >> n;double v = 1.0;for (int i = 1; i < n; i++) {int a;cin >> a;v *= (double)(1000 - a) / 1000;}cout << setprecision(16) << fixed << 1000 - 1000 * v << endl;}