結果

問題 No.450 ベー君のシャトルラン
ユーザー 👑 KazunKazun
提出日時 2020-11-18 00:46:20
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 235 bytes
コンパイル時間 1,118 ms
コンパイル使用メモリ 86,968 KB
実行使用メモリ 76,652 KB
最終ジャッジ日時 2023-09-30 14:38:47
合計ジャッジ時間 48,802 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1,969 ms
76,504 KB
testcase_01 AC 1,971 ms
76,436 KB
testcase_02 AC 1,969 ms
76,460 KB
testcase_03 AC 1,971 ms
76,348 KB
testcase_04 AC 1,970 ms
76,460 KB
testcase_05 AC 1,969 ms
76,420 KB
testcase_06 AC 1,971 ms
76,652 KB
testcase_07 AC 1,970 ms
76,456 KB
testcase_08 AC 1,970 ms
76,296 KB
testcase_09 AC 1,972 ms
76,548 KB
testcase_10 AC 1,969 ms
76,348 KB
testcase_11 AC 1,970 ms
76,636 KB
testcase_12 AC 1,972 ms
76,364 KB
testcase_13 AC 1,972 ms
76,460 KB
testcase_14 AC 1,970 ms
76,292 KB
testcase_15 AC 1,970 ms
76,408 KB
testcase_16 AC 1,972 ms
76,496 KB
testcase_17 AC 1,970 ms
76,548 KB
testcase_18 AC 1,971 ms
76,292 KB
testcase_19 AC 1,969 ms
76,552 KB
testcase_20 AC 1,971 ms
76,552 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())
iwl=1/(w+vl);iwr=1/(w+vr)

BEGIN=time()
TIME_LIMIT=1.900
T=0

while time()-BEGIN<=TIME_LIMIT:
    T+=(d-T*v)*iwr
    T+=(d-T*v)*iwl
print(T*w)
0