結果

問題 No.1993 Horse Racing
ユーザー MasKoaTSMasKoaTS
提出日時 2022-03-19 21:40:20
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 143 ms / 2,000 ms
コード長 211 bytes
コンパイル時間 164 ms
コンパイル使用メモリ 81,920 KB
実行使用メモリ 81,792 KB
最終ジャッジ日時 2024-04-17 11:35:45
合計ジャッジ時間 4,672 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 126 ms
79,744 KB
testcase_01 AC 133 ms
79,872 KB
testcase_02 AC 125 ms
79,872 KB
testcase_03 AC 129 ms
79,872 KB
testcase_04 AC 127 ms
79,744 KB
testcase_05 AC 124 ms
79,744 KB
testcase_06 AC 128 ms
79,872 KB
testcase_07 AC 128 ms
79,744 KB
testcase_08 AC 130 ms
79,872 KB
testcase_09 AC 137 ms
81,408 KB
testcase_10 AC 138 ms
81,280 KB
testcase_11 AC 140 ms
81,280 KB
testcase_12 AC 143 ms
81,280 KB
testcase_13 AC 134 ms
79,872 KB
testcase_14 AC 137 ms
81,792 KB
testcase_15 AC 141 ms
81,280 KB
testcase_16 AC 142 ms
81,408 KB
testcase_17 AC 127 ms
80,128 KB
testcase_18 AC 133 ms
81,408 KB
testcase_19 AC 134 ms
81,792 KB
testcase_20 AC 138 ms
81,536 KB
testcase_21 AC 133 ms
80,000 KB
testcase_22 AC 135 ms
80,128 KB
testcase_23 AC 143 ms
81,408 KB
testcase_24 AC 130 ms
79,744 KB
testcase_25 AC 129 ms
80,000 KB
testcase_26 AC 127 ms
79,872 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
from decimal import Decimal as dec
input = sys.stdin.readline

n = int(input())
a = list(map(dec, input().split()))

p = dec(1)
m = dec(1000)
for i in a:
	p *= (m - i) / m
ans = m - m * p

print(ans)
0