結果
問題 | No.306 さいたま2008 |
ユーザー |
|
提出日時 | 2023-06-04 11:47:41 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 232 bytes |
コンパイル時間 | 1,293 ms |
コンパイル使用メモリ | 160,200 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2025-02-14 12:18:38 |
合計ジャッジ時間 | 2,152 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 26 |
ソースコード
#include <bits/stdc++.h> using namespace std; using ld = long double; ld xa, ya, xb, yb; int main(){ cin >> xa >> ya >> xb >> yb; double ans = yb-(yb-ya)/(xb+xa)*xb; cout<<fixed<<setprecision(16); cout << ans << endl; }