結果
問題 | No.306 さいたま2008 |
ユーザー |
|
提出日時 | 2015-12-20 20:30:06 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 553 bytes |
コンパイル時間 | 804 ms |
コンパイル使用メモリ | 92,800 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2025-02-14 12:11:54 |
合計ジャッジ時間 | 1,520 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 26 |
ソースコード
#include <cstdio> #include <iostream> #include <sstream> #include <fstream> #include <iomanip> #include <algorithm> #include <cmath> #include <string> #include <vector> #include <list> #include <queue> #include <stack> #include <set> #include <map> #include <bitset> #include <numeric> #include <limits> #include <climits> #include <cfloat> #include <functional> using namespace std; int main() { double xa, ya, xb, yb; cin >> xa >> ya >> xb >> yb; double ans = yb + xb / (xa + xb) * (ya - yb); printf("%.10f\n", ans); return 0; }