結果
問題 |
No.1064 ∪∩∩ / Cup Cap Cap
|
ユーザー |
![]() |
提出日時 | 2020-08-15 14:26:46 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 511 bytes |
コンパイル時間 | 1,570 ms |
コンパイル使用メモリ | 168,600 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-10 17:53:24 |
合計ジャッジ時間 | 2,599 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 36 |
ソースコード
#include <bits/stdc++.h> using namespace std; using ll = long long; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); ll a, b, c, d; cin >> a >> b >> c >> d; string res; ll x0 = (a - c) * (a - c) - 8 * (b - d); if (x0 == 0) cout << "Yes\n"; else if (x0 < 0) cout << "No\n"; else { double p = (a + c) / 2.0; double q = (b + d) / 2.0; cout << fixed << setprecision(10) << p << " " << q << "\n"; } return 0; }