結果
問題 | No.450 ベー君のシャトルラン |
ユーザー |
|
提出日時 | 2016-12-05 00:14:05 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 1,079 bytes |
コンパイル時間 | 1,656 ms |
コンパイル使用メモリ | 96,308 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-27 20:02:50 |
合計ジャッジ時間 | 1,742 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
ソースコード
#include <algorithm> #include <cmath> #include <climits> #include <cstring> #include <cstdio> #include <deque> #include <fstream> #include <iomanip> #include <iostream> #include <map> //pair is also included in this library #include <queue> #include <set> #include <stack> #include <string> #include <unordered_map> #include <vector> #define REP(i, s, n) for(int i = (int)(s); i < (int)(n); i++) #define fst first #define snd second #define MP make_pair //incase c++11 or later is not available using namespace std; typedef long long int ll; typedef vector<int> VI; typedef vector<ll> VL; typedef pair<int, int> PII; typedef pair<ll, ll> PLL; //prefer define statement //for reason that const int ver. of INF will raise a silly warning (unused variable) #define INF (INT_MAX/3) #define LIM_INF (INT_MAX) //const int INF = INT_MAX/3; /*------------------------------------------------------------------------------*/ int main(){ double v1, v2, d, w; scanf("%lf %lf\n%lf\n%lf", &v1, &v2, &d, &w); printf("%.6f\n", ((double)d / (v1 + v2)) * (double)w); return 0; }