結果
| 問題 | No.1517 Party Location |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-09-01 23:37:19 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 199 bytes |
| 記録 | |
| コンパイル時間 | 1,136 ms |
| コンパイル使用メモリ | 209,312 KB |
| 実行使用メモリ | 7,972 KB |
| 最終ジャッジ日時 | 2026-06-22 22:58:02 |
| 合計ジャッジ時間 | 2,377 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
}