結果
| 問題 |
No.450 ベー君のシャトルラン
|
| コンテスト | |
| ユーザー |
picakun
|
| 提出日時 | 2018-01-24 20:07:57 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 453 bytes |
| コンパイル時間 | 521 ms |
| コンパイル使用メモリ | 65,724 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-26 07:49:57 |
| 合計ジャッジ時間 | 1,369 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
#include<iostream>
#include<algorithm>
#include<string>
#include<vector>
#include<iomanip>
#include<stdio.h>
#define RREP(i,s,e) for (i = s; i >= e; i--)
#define rrep(i,n) RREP(i,n,0)
#define REP(i,s,e) for (i = s; i < e; i++)
#define rep(i,n) REP(i,0,n)
#define INF 100000000
using namespace std;
int main(){
double vl, vr;
cin >> vl >> vr;
double d, w;
cin >> d;
cin >> w;
double ans = w * d/(vl + vr);
printf("%.12f\n", ans);
return 0;
}
picakun