結果

問題 No.306 さいたま2008
ユーザー WatsonWatson
提出日時 2017-08-03 14:07:16
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 29 ms / 2,000 ms
コード長 204 bytes
コンパイル時間 83 ms
コンパイル使用メモリ 12,032 KB
実行使用メモリ 10,368 KB
最終ジャッジ日時 2025-02-14 12:14:18
合計ジャッジ時間 1,766 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 26
権限があれば一括ダウンロードができます

ソースコード

diff #

Pa = [int(i) for i in input().split()]
Pb = [int(i) for i in input().split()]
if Pa[1] < Pb[1]:
    print(Pa[1]+(Pb[1]-Pa[1])/(Pa[0]+Pb[0])*Pa[0])
else:
    print(Pb[1]+(Pa[1]-Pb[1])/(Pb[0]+Pa[0])*Pb[0])
0