結果
問題 |
No.1064 ∪∩∩ / Cup Cap Cap
|
ユーザー |
![]() |
提出日時 | 2020-08-15 14:20:41 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 520 bytes |
コンパイル時間 | 1,586 ms |
コンパイル使用メモリ | 170,884 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-10 17:53:16 |
合計ジャッジ時間 | 2,739 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 4 |
other | WA * 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) res = "Yes\n"; else if (x0 < 0) res = "No\n"; else { double p = (a + c) / 2.0; double q = (b + d) / 2.0; res = to_string(p) + " " + to_string(q) + "\n"; } cout << res << "\n"; return 0; }