結果
問題 |
No.450 ベー君のシャトルラン
|
ユーザー |
👑 ![]() |
提出日時 | 2020-11-18 00:42:37 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 274 bytes |
コンパイル時間 | 416 ms |
コンパイル使用メモリ | 82,232 KB |
実行使用メモリ | 75,852 KB |
最終ジャッジ日時 | 2024-07-23 08:37:15 |
合計ジャッジ時間 | 45,452 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 18 WA * 2 |
ソースコード
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)