結果
| 問題 | 
                            No.1517 Party Location
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2021-09-01 23:37:19 | 
| 言語 | C++17  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 199 bytes | 
| コンパイル時間 | 1,765 ms | 
| コンパイル使用メモリ | 193,012 KB | 
| 最終ジャッジ日時 | 2025-01-24 04:20:48 | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 1 WA * 11 RE * 1 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define rep(i,l,r) for(int i=(l);i<(r);++i)
typedef long long ll;
int main(){
	int d,a,b; cin>>d>>a>>b;
	double x=b/(a+b)*d;
	cout<<a*x+(d-x)*b<<endl;
}