結果
| 問題 | No.1064 ∪∩∩ / Cup Cap Cap |
| コンテスト | |
| ユーザー |
umezo
|
| 提出日時 | 2020-05-29 22:18:00 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 602 bytes |
| 記録 | |
| コンパイル時間 | 1,354 ms |
| コンパイル使用メモリ | 249,200 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-06-10 09:17:31 |
| 合計ジャッジ時間 | 2,659 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
}
umezo