結果
| 問題 |
No.1064 ∪∩∩ / Cup Cap Cap
|
| コンテスト | |
| ユーザー |
wk
|
| 提出日時 | 2020-05-29 21:37:27 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 418 bytes |
| コンパイル時間 | 1,829 ms |
| コンパイル使用メモリ | 167,148 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-11-06 02:51:11 |
| 合計ジャッジ時間 | 2,725 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 35 WA * 1 |
ソースコード
#include <bits/stdc++.h>
#define REP(i, n) for(int i = 0; (i) < (n); (i)++)
using namespace std;
int main()
{
int a, b, c, d; cin >> a >> b >> c >> d;
int D = (a-c)*(a-c) - 8 * (b-d);
if(D<0) cout << "No" << endl;
else if(D==0) cout << "Yes" << endl;
else{
cout << fixed;
cout << setprecision(8) << (double)(a+c)/2.0 << " " << (double)(b+d)/2.0 << endl;
}
return 0;
}
wk