結果
問題 |
No.1993 Horse Racing
|
ユーザー |
|
提出日時 | 2023-09-15 16:20:33 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 305 bytes |
コンパイル時間 | 674 ms |
コンパイル使用メモリ | 72,396 KB |
最終ジャッジ日時 | 2025-02-16 22:34:17 |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 23 |
ソースコード
#include <iostream> #include <iomanip> using namespace std; int main(void){ int n; cin >> n; double a; double pos = 1000.0f; for (int i = 0; i < n-1; i++) { cin >> a; pos = pos * (1000.0f-a)/1000.0f; } cout << fixed << setprecision(26) << 1000 - pos << endl; }