結果

問題 No.1517 Party Location
ユーザー LV3zJigVW57oPGyLV3zJigVW57oPGy
提出日時 2022-10-29 10:01:49
言語 C++11
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 216 bytes
コンパイル時間 1,467 ms
コンパイル使用メモリ 156,896 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-07-06 10:14:41
合計ジャッジ時間 1,811 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 1
other WA * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h> 
using namespace std;
#include <ios>
#include <iomanip>
  
int main() {
  double a, b, c;
  cin >>a>>b>>c;
  double Acity = b/(b+c)*a;
  double Bcity = c/(b+c)*a;
  cout << Acity*b+Bcity*c;
}
0