結果
問題 | No.1993 Horse Racing |
ユーザー |
|
提出日時 | 2022-07-04 16:53:44 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 358 bytes |
コンパイル時間 | 1,840 ms |
コンパイル使用メモリ | 192,144 KB |
最終ジャッジ日時 | 2025-01-30 04:34:25 |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 23 |
ソースコード
#include <bits/stdc++.h>using namespace std;#define REP(i, n) for(int i = 0; i < (n); i++)using ll = long long;using ld = long double;int main(){ll N;cin >> N;ld ans = 1000.0;REP(i, N-1){ll A;cin >> A;ans *= (1000.0-A)/1000.0;}cout << std::fixed << std::setprecision(15) << 1000.0-ans << endl;}