結果
問題 |
No.1993 Horse Racing
|
ユーザー |
![]() |
提出日時 | 2022-07-02 08:10:26 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 272 bytes |
コンパイル時間 | 1,381 ms |
コンパイル使用メモリ | 166,036 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-26 20:56:55 |
合計ジャッジ時間 | 2,229 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 3 |
other | AC * 1 WA * 22 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(){ int n,a[200];cin>>n; for(int i=1;i<n;i++){ cin>>a[i]; } double ans=1; for(int i=1;i<n;i++){ int x=1000-a[i]; ans*=(double)(x/1000); } cout<<1000*(1-ans)<<endl; }