結果
問題 |
No.450 ベー君のシャトルラン
|
ユーザー |
![]() |
提出日時 | 2024-01-30 21:07:55 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 248 bytes |
コンパイル時間 | 305 ms |
コンパイル使用メモリ | 82,548 KB |
実行使用メモリ | 85,632 KB |
最終ジャッジ日時 | 2024-09-28 10:17:11 |
合計ジャッジ時間 | 6,943 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | TLE * 1 -- * 2 |
other | -- * 20 |
ソースコード
vl,vr = map(int,input().split()) d = int(input()) w = int(input()) r = 0 l = d p = 0 ans = 0 while r < l: time = d / (vr + w) l2 = vl * time r2 = w * time ans += r2 d = r2 - l2 r = l2 l = r2 vl,vr = vr,vl print(ans)