結果
| 問題 |
No.1993 Horse Racing
|
| コンテスト | |
| ユーザー |
sotanishy
|
| 提出日時 | 2022-07-01 22:00:57 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 40 ms / 2,000 ms |
| コード長 | 226 bytes |
| コンパイル時間 | 573 ms |
| コンパイル使用メモリ | 82,300 KB |
| 実行使用メモリ | 53,940 KB |
| 最終ジャッジ日時 | 2024-11-26 05:03:48 |
| 合計ジャッジ時間 | 2,470 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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