結果

問題 No.1993 Horse Racing
ユーザー sotanishysotanishy
提出日時 2022-07-01 22:00:57
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 75 ms / 2,000 ms
コード長 226 bytes
コンパイル時間 248 ms
コンパイル使用メモリ 87,248 KB
実行使用メモリ 71,584 KB
最終ジャッジ日時 2023-08-17 09:35:12
合計ジャッジ時間 3,187 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 66 ms
71,444 KB
testcase_01 AC 65 ms
71,300 KB
testcase_02 AC 65 ms
71,384 KB
testcase_03 AC 65 ms
71,384 KB
testcase_04 AC 66 ms
71,240 KB
testcase_05 AC 72 ms
71,384 KB
testcase_06 AC 67 ms
71,424 KB
testcase_07 AC 66 ms
71,192 KB
testcase_08 AC 70 ms
71,300 KB
testcase_09 AC 68 ms
71,472 KB
testcase_10 AC 68 ms
71,236 KB
testcase_11 AC 69 ms
71,520 KB
testcase_12 AC 75 ms
71,480 KB
testcase_13 AC 68 ms
71,400 KB
testcase_14 AC 66 ms
71,540 KB
testcase_15 AC 67 ms
71,412 KB
testcase_16 AC 67 ms
71,584 KB
testcase_17 AC 65 ms
71,468 KB
testcase_18 AC 66 ms
71,584 KB
testcase_19 AC 65 ms
71,240 KB
testcase_20 AC 68 ms
71,372 KB
testcase_21 AC 70 ms
71,232 KB
testcase_22 AC 69 ms
71,204 KB
testcase_23 AC 67 ms
71,412 KB
testcase_24 AC 68 ms
71,448 KB
testcase_25 AC 69 ms
71,372 KB
testcase_26 AC 71 ms
71,308 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline

N = int(input())
A = list(map(int, input().split()))
speed = [0] * N
speed[0] = 1
for i in range(N-1):
    t = 1000/speed[i]
    speed[i+1] = speed[i] - A[i]/t
print(1000-speed[N-1]*1000)
0