結果
| 問題 |
No.306 さいたま2008
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-11-27 23:34:31 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 331 bytes |
| コンパイル時間 | 527 ms |
| コンパイル使用メモリ | 66,472 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2025-02-14 12:10:27 |
| 合計ジャッジ時間 | 1,364 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 26 |
ソースコード
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <math.h>
using namespace std;
typedef unsigned int uint;
typedef unsigned long ulong;
int main() {
double xa, xb, ya, yb;
cin >> xa >> ya >> xb >> yb;
double answer = ya + (yb - ya) * xa / (xa + xb);
printf("%.6lf",answer);
return 0;
}