結果
問題 | No.306 さいたま2008 |
ユーザー |
|
提出日時 | 2020-04-13 22:02:57 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 394 bytes |
コンパイル時間 | 580 ms |
コンパイル使用メモリ | 71,884 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2025-02-14 12:16:18 |
合計ジャッジ時間 | 1,535 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 26 |
ソースコード
#include <iostream>#include <iomanip>using ldouble = long double;void solve() {ldouble x1, y1, x2, y2;std::cin >> x1 >> y1 >> x2 >> y2;std::cout << std::fixed << std::setprecision(10)<< (x1 * y2 + x2 * y1) / (x1 + x2)<< std::endl;}int main() {std::cin.tie(nullptr);std::ios::sync_with_stdio(false);solve();return 0;}