結果
| 問題 |
No.450 ベー君のシャトルラン
|
| コンテスト | |
| ユーザー |
piniky
|
| 提出日時 | 2016-12-09 01:42:14 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 713 bytes |
| コンパイル時間 | 1,552 ms |
| コンパイル使用メモリ | 170,800 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-28 16:01:43 |
| 合計ジャッジ時間 | 2,417 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
#include "bits/stdc++.h"
#define debug(x) cout<<#x<<": "<<x<<endl
#define rep(i,n) for (int i=0;i<(n);i++)
#define FOR(i,a,b) for (int i=(a);i<=(b);i++)
#define all(a) (a).begin(),(a).end()
using namespace std;
typedef vector<int> VI;
typedef vector<vector<int>> VVI;
typedef long long ll;
set<int> mergeSet(set<int> s1, set<int> s2) {
for (int ele : s2) {
s1.insert(ele);
}
return s1;
}
void solve() {
#ifdef _WIN32
istream &cin = ifstream("input.txt");
#endif
int a, b, x, v;
cin >> a >> b >> x >> v;
cout << fixed << setprecision(10) << (double)v * x / (a + b) << endl;
}
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
solve();
#ifdef _WIN32
system("PAUSE");
#endif
return 0;
}
piniky