結果
問題 | No.306 さいたま2008 |
ユーザー |
![]() |
提出日時 | 2020-11-21 11:49:30 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 310 bytes |
コンパイル時間 | 1,947 ms |
コンパイル使用メモリ | 192,132 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2025-02-14 12:17:33 |
合計ジャッジ時間 | 2,638 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 26 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int ax, ay, bx, by; cin >> ax >> ay >> bx >> by; if (ay > by) swap(ay, by), swap(ax, bx); cout << fixed << setprecision(10) << (double)(by - ay) / (ax + bx) * ax + ay << '\n'; return 0; }