結果
| 問題 | No.1993 Horse Racing |
| コンテスト | |
| ユーザー |
遭難者
|
| 提出日時 | 2022-03-20 19:15:48 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 37 ms / 2,000 ms |
| コード長 | 276 bytes |
| 記録 | |
| コンパイル時間 | 119 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 11,520 KB |
| 最終ジャッジ日時 | 2024-10-09 05:41:46 |
| 合計ジャッジ時間 | 1,932 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)
遭難者