結果

問題 No.1993 Horse Racing
ユーザー ShirotsumeShirotsume
提出日時 2022-07-01 21:52:49
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 75 ms / 2,000 ms
コード長 338 bytes
コンパイル時間 313 ms
コンパイル使用メモリ 87,036 KB
実行使用メモリ 71,660 KB
最終ジャッジ日時 2023-08-17 09:25:24
合計ジャッジ時間 3,338 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,528 KB
testcase_01 AC 70 ms
71,660 KB
testcase_02 AC 70 ms
71,408 KB
testcase_03 AC 70 ms
71,144 KB
testcase_04 AC 75 ms
71,416 KB
testcase_05 AC 70 ms
71,524 KB
testcase_06 AC 71 ms
71,392 KB
testcase_07 AC 70 ms
71,160 KB
testcase_08 AC 71 ms
71,476 KB
testcase_09 AC 69 ms
71,344 KB
testcase_10 AC 69 ms
71,420 KB
testcase_11 AC 70 ms
71,384 KB
testcase_12 AC 70 ms
71,632 KB
testcase_13 AC 70 ms
71,396 KB
testcase_14 AC 71 ms
71,212 KB
testcase_15 AC 72 ms
71,400 KB
testcase_16 AC 72 ms
71,400 KB
testcase_17 AC 71 ms
71,576 KB
testcase_18 AC 70 ms
71,388 KB
testcase_19 AC 70 ms
71,312 KB
testcase_20 AC 70 ms
71,568 KB
testcase_21 AC 71 ms
71,580 KB
testcase_22 AC 71 ms
71,576 KB
testcase_23 AC 72 ms
71,404 KB
testcase_24 AC 70 ms
71,316 KB
testcase_25 AC 70 ms
71,392 KB
testcase_26 AC 70 ms
71,568 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = lambda: sys.stdin.readline().rstrip()
ii = lambda: int(input())
mi = lambda: map(int, input().split())
li = lambda: list(mi())
INF = 2 ** 63 - 1
mod = 998244353

n = ii()

a = li()

speed = [0] * (n)

speed[0] = 1000

for i in range(n - 1):
    speed[i + 1] = speed[i] * (1000 - a[i]) / 1000

print(1000 - speed[n - 1])
0