結果

問題 No.450 ベー君のシャトルラン
ユーザー ra
提出日時 2022-09-07 16:14:03
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 254 bytes
コンパイル時間 218 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-11-22 21:13:58
合計ジャッジ時間 1,575 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 3
other RE * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

u,d,w = input().split('\n')
ul,ur = list(map(int,u.split('\n')))
d,w = int(d),int(w)
result = 0
while d:
    result += d
    m = d/(ur+w)
    d -= (ur+ul)*m
    if d:
        result += d
        m = d/(ur+w)
        d -= (ur+ul)*m
    else:
        break
0