結果
| 問題 | No.1993 Horse Racing |
| コンテスト | |
| ユーザー |
sotanishy
|
| 提出日時 | 2022-07-01 22:00:57 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 27 ms / 2,000 ms |
| コード長 | 226 bytes |
| 記録 | |
| コンパイル時間 | 205 ms |
| コンパイル使用メモリ | 85,760 KB |
| 実行使用メモリ | 52,224 KB |
| 最終ジャッジ日時 | 2026-05-20 16:30:36 |
| 合計ジャッジ時間 | 2,059 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 23 |
ソースコード
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)
sotanishy