結果
| 問題 | No.1993 Horse Racing |
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2022-03-20 19:15:48 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 25 ms / 2,000 ms |
| + 695µs | |
| コード長 | 276 bytes |
| 記録 | |
| コンパイル時間 | 59 ms |
| コンパイル使用メモリ | 15,232 KB |
| 実行使用メモリ | 11,648 KB |
| 最終ジャッジ日時 | 2026-09-12 09:26:06 |
| 合計ジャッジ時間 | 2,157 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 23 |
ソースコード
from fractions import Fraction
from decimal import Decimal
n = int(input())
a = list(map(int, input().split()))
ans = Fraction(1000, 1)
for i in a:
ans *= 1000 - i
ans /= 1000
ans = 1000 - ans
s = Decimal(str(ans.numerator))
s /= Decimal(str(ans.denominator))
print(s)