結果
| 問題 | No.1064 ∪∩∩ / Cup Cap Cap | 
| コンテスト | |
| ユーザー |  umezo | 
| 提出日時 | 2020-05-29 22:18:00 | 
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 8 ms / 2,000 ms | 
| コード長 | 602 bytes | 
| コンパイル時間 | 3,409 ms | 
| コンパイル使用メモリ | 214,768 KB | 
| 最終ジャッジ日時 | 2025-01-10 17:40:03 | 
| ジャッジサーバーID (参考情報) | judge2 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 4 | 
| other | AC * 36 | 
ソースコード
#define _GLIBCXX_DEBUG
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define ALL(v) v.begin(), v.end()
typedef long long ll;
template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }
#include <bits/stdc++.h>
using namespace std;
int main(){
  double a,b,c,d;
  cin>>a>>b>>c>>d;
  
  double D=(a-c)*(a-c)-8*(b-d);
  
  if(D<0) cout<<"No"<<endl;
  else if(D==0) cout<<"Yes"<<endl;
  else{
    cout<< fixed << setprecision(15) <<(a+c)/2<<" "<<(b+d)/2<<endl;
  }
  return 0;
}
            
            
            
        