結果
| 問題 |
No.1064 ∪∩∩ / Cup Cap Cap
|
| コンテスト | |
| ユーザー |
Moon0603
|
| 提出日時 | 2020-05-29 21:47:19 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 22 ms / 2,000 ms |
| コード長 | 509 bytes |
| コンパイル時間 | 1,842 ms |
| コンパイル使用メモリ | 192,420 KB |
| 最終ジャッジ日時 | 2025-01-10 16:53:45 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 36 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main()
{
ios::sync_with_stdio(false);
cin.tie(nullptr);
long long a, b, c, d;
cin >> a >> b >> c >> d;
long long A = 2, B = a - c, C = b - d;
if (B * B - 4 * A * C < 0)
{
cout << "No" << '\n';
return 0;
}
if (B * B - 4 * A * C == 0)
{
cout << "Yes" << '\n';
return 0;
}
cout << fixed << setprecision(17) << 1.0 * (a + c) / 2 << " " << 1.0 * (b + d) / 2 << '\n';
return 0;
}
Moon0603