結果
| 問題 | No.1064 ∪∩∩ / Cup Cap Cap | 
| コンテスト | |
| ユーザー |  milanis48663220 | 
| 提出日時 | 2020-05-29 21:29:15 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 601 bytes | 
| コンパイル時間 | 713 ms | 
| コンパイル使用メモリ | 82,368 KB | 
| 実行使用メモリ | 6,820 KB | 
| 最終ジャッジ日時 | 2024-11-06 02:30:08 | 
| 合計ジャッジ時間 | 1,817 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 4 | 
| other | AC * 36 | 
ソースコード
#include <iostream>
#include <algorithm>
#include <iomanip>
#include <vector>
#include <queue>
#include <set>
#include <map>
using namespace std;
typedef long long ll;
ll a, b, c, d;
int main(){
    ios::sync_with_stdio(false);
    cin.tie(0);
    cout << setprecision(10) << fixed;
    cin >> a >> b >> c >> d;
    ll e = a-c;
    ll f = b-d;
    ll D = e*e-8*f;
    if(D < 0){
        cout << "No" << endl;
    }else if(D == 0){
        cout << "Yes" << endl;
    }else{
        double p = ((double)(a+c))/2.0;
        double q = ((double)(b+d))/2.0;
        cout << p << ' ' << q << endl;
    }
}
            
            
            
        