結果

問題 No.1993 Horse Racing
ユーザー MasKoaTSMasKoaTS
提出日時 2022-06-14 21:23:54
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 139 ms / 2,000 ms
コード長 815 bytes
コンパイル時間 386 ms
コンパイル使用メモリ 82,556 KB
実行使用メモリ 87,076 KB
最終ジャッジ日時 2024-04-12 10:46:14
合計ジャッジ時間 4,884 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 133 ms
86,932 KB
testcase_01 AC 124 ms
86,856 KB
testcase_02 AC 125 ms
86,956 KB
testcase_03 AC 126 ms
86,856 KB
testcase_04 AC 127 ms
86,896 KB
testcase_05 AC 122 ms
86,652 KB
testcase_06 AC 123 ms
86,932 KB
testcase_07 AC 123 ms
86,896 KB
testcase_08 AC 125 ms
86,564 KB
testcase_09 AC 122 ms
86,852 KB
testcase_10 AC 123 ms
86,500 KB
testcase_11 AC 124 ms
86,848 KB
testcase_12 AC 124 ms
86,908 KB
testcase_13 AC 124 ms
86,468 KB
testcase_14 AC 126 ms
86,876 KB
testcase_15 AC 123 ms
86,936 KB
testcase_16 AC 127 ms
86,948 KB
testcase_17 AC 123 ms
86,536 KB
testcase_18 AC 123 ms
86,880 KB
testcase_19 AC 123 ms
86,900 KB
testcase_20 AC 122 ms
86,900 KB
testcase_21 AC 123 ms
86,524 KB
testcase_22 AC 125 ms
86,588 KB
testcase_23 AC 127 ms
86,888 KB
testcase_24 AC 120 ms
86,472 KB
testcase_25 AC 139 ms
87,076 KB
testcase_26 AC 122 ms
86,764 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import itertools as iter
import collections as coll
import heapq as hq
import bisect as bis
from decimal import Decimal as dec
from functools import cmp_to_key
import math
import sys
#import pypyjit
#pypyjit.set_param('max_unroll_recursion=-1')
sys.setrecursionlimit(10 ** 6)
inp = sys.stdin.readline
input = lambda : inp().rstrip()
getN = lambda : int(inp())
getNs = lambda : map(int, inp().split())
getList = lambda :list(map(int, inp().split()))
getStrs = lambda n : [input() for _ in [0] * n]
def yexit(): print("Yes"); exit(0)
def nexit(): print("No"); exit(0)
pi = 3.141592653589793
mod = 1000000007
MOD = 998244353
INF = 4611686018427387903
dx = [1, 0, -1, 0];	dy = [0, 1, 0, -1]


"""
Main Code
"""

n = getN()
a = getList()

p = 1.0
m = 1000.0
for k in a:
	p *= (m - k) / m
ans = m * (1.0 - p)

print(ans)
0