結果
| 問題 |
No.450 ベー君のシャトルラン
|
| ユーザー |
threepipes_s
|
| 提出日時 | 2016-12-01 00:18:44 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 225 bytes |
| コンパイル時間 | 120 ms |
| コンパイル使用メモリ | 12,288 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-11-27 14:26:35 |
| 合計ジャッジ時間 | 1,609 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 18 WA * 2 |
ソースコード
vl, vr = map(int, input().split())
d = int(input())
w = int(input())
sum_d = 0
for i in range(100):
t1 = d/(w+vl)
sum_d += t1*w
d -= t1*(vl+vr)
t2 = d/(w+vr)
sum_d += t2*w
d -= t2*(vl+vr)
print(sum_d)
threepipes_s