結果
| 問題 | No.450 ベー君のシャトルラン |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-12-01 00:36:44 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 285 bytes |
| 記録 | |
| コンパイル時間 | 230 ms |
| コンパイル使用メモリ | 84,864 KB |
| 実行使用メモリ | 86,784 KB |
| 最終ジャッジ日時 | 2026-05-21 21:13:50 |
| 合計ジャッジ時間 | 4,141 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 18 WA * 2 |
ソースコード
from fractions import Fraction vl, vr = map(int, input().split()) d = int(input()) w = int(input()) D = d ans = Fraction(0) for _ in range(100): t = Fraction(D, w + vr) dd = t * (w - vl) tt = Fraction(dd, w + vl) D -= (t + tt) * (vr + vl) ans += (t + tt) * w print(float(ans))