結果
| 問題 | No.450 ベー君のシャトルラン |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-08-03 12:06:41 |
| 言語 | Python3 (3.15.2 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 238 bytes |
| 記録 | |
| コンパイル時間 | 66 ms |
| コンパイル使用メモリ | 14,848 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2026-10-13 00:54:42 |
| 合計ジャッジ時間 | 13,587 ms |
|
ジャッジサーバーID (参考情報) |
judge5_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 19 WA * 2 |
ソースコード
vl, vr = map(int, input().split())
d = int(input())
w = int(input())
ans = 0
for i in range(10 ** 6):
if i % 2 == 0:
t = d / (w + vr)
else:
t = d / (w + vl)
d -= t * (vr + vl)
ans += t * w
print(ans)