結果

問題 No.450 ベー君のシャトルラン
ユーザー 👑 KazunKazun
提出日時 2020-11-18 00:42:37
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 274 bytes
コンパイル時間 352 ms
コンパイル使用メモリ 87,276 KB
実行使用メモリ 76,772 KB
最終ジャッジ日時 2023-09-30 14:36:24
合計ジャッジ時間 46,777 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1,873 ms
76,588 KB
testcase_01 AC 1,872 ms
76,384 KB
testcase_02 AC 1,873 ms
76,496 KB
testcase_03 AC 1,874 ms
76,772 KB
testcase_04 AC 1,874 ms
76,504 KB
testcase_05 AC 1,874 ms
76,604 KB
testcase_06 AC 1,874 ms
76,604 KB
testcase_07 AC 1,873 ms
76,560 KB
testcase_08 AC 1,872 ms
76,712 KB
testcase_09 AC 1,873 ms
76,588 KB
testcase_10 AC 1,874 ms
76,744 KB
testcase_11 AC 1,875 ms
76,444 KB
testcase_12 AC 1,875 ms
76,596 KB
testcase_13 AC 1,874 ms
76,496 KB
testcase_14 AC 1,874 ms
76,584 KB
testcase_15 AC 1,873 ms
76,744 KB
testcase_16 AC 1,873 ms
76,724 KB
testcase_17 AC 1,872 ms
76,684 KB
testcase_18 AC 1,873 ms
76,448 KB
testcase_19 AC 1,873 ms
76,608 KB
testcase_20 AC 1,871 ms
76,756 KB
testcase_21 WA -
testcase_22 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

from time import time

vl,vr=map(int,input().split())
v=vl+vr

d=int(input())
w=int(input())
wl=w+vl;wr=w+vr

BEGIN=time()
TIME_LIMIT=1.800
flag=0
T=0

while time()-BEGIN<=TIME_LIMIT:
    if flag:
        T+=(d-T*v)/wr
    else:
        T+=(d-T*v)/wl
    flag^=1

print(T*w)
0