結果

問題 No.1517 Party Location
ユーザー 163x bee.
提出日時 2021-07-20 17:07:26
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 163 bytes
コンパイル時間 88 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-07-17 13:44:00
合計ジャッジ時間 1,412 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 1 WA * 11 RE * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

d = int(input())
a, b =map(int, input().split())

x = d / (a + b) * a

if a == 0 or b == 0:
    print(0)
else: 
    ans = x * a + (d - x) * b
    print(round(ans))
0