結果
問題 |
No.450 ベー君のシャトルラン
|
ユーザー |
|
提出日時 | 2016-12-01 00:15:32 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 255 bytes |
コンパイル時間 | 377 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 20,736 KB |
最終ジャッジ日時 | 2024-11-27 14:23:45 |
合計ジャッジ時間 | 7,723 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 18 TLE * 2 |
ソースコード
#!/usr/bin/env python3 vl, vr = map(int, input().split()) d = int(input()) w = int(input()) acc = 0 while d > 1e-8: dt = d / (w + vr) acc += dt * w d -= dt * (vl + vr) dt = d / (vl + w) acc += dt * w d -= dt * (vl + vr) print(acc)