結果
| 問題 |
No.306 さいたま2008
|
| コンテスト | |
| ユーザー |
nenuon
|
| 提出日時 | 2017-07-04 22:31:13 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 497 bytes |
| コンパイル時間 | 626 ms |
| コンパイル使用メモリ | 84,380 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2025-02-14 12:14:13 |
| 合計ジャッジ時間 | 1,567 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 26 |
ソースコード
#include <algorithm>
#include <cstdio>
#include <iostream>
#include <map>
#include <cmath>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
#include <stdlib.h>
#include <stdio.h>
#include <bitset>
using namespace std;
#define FOR(I,A,B) for(int I = (A); I < (B); ++I)
typedef long long ll;
int main(){
double xa, ya, xb, yb;
cin >> xa >> ya >> xb >> yb;
double ans = yb - ((yb-ya)/(xb+xa))*xb;
printf("%.08lf\n", ans);
return 0;
}
nenuon