結果
問題 |
No.1064 ∪∩∩ / Cup Cap Cap
|
ユーザー |
|
提出日時 | 2024-02-06 18:47:18 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 1,265 bytes |
コンパイル時間 | 3,489 ms |
コンパイル使用メモリ | 261,668 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-28 12:10:31 |
合計ジャッジ時間 | 4,717 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 36 |
ソースコード
#pragma GCC target("avx2") #pragma GCC optimize("O3") #pragma GCC optimize("unroll-loops") #include <bits/stdc++.h> // #include <atcoder/all> using namespace std; // using namespace atcoder; #define rep(i,m,n,k) for (int i = (int)(m); i < (int)(n); i += (int)(k)) #define rrep(i,m,n,k) for (int i = (int)(m); i > (int)(n); i += (int)(k)) #define ll long long #define list(T,A,N) vector<T> A(N);for(int i=0;i<(int)(N);i++){cin >> A[i];} #define all(X) X.begin(),X.end() template<typename T> inline bool chmin(T& a, T b){if(a > b){a = b; return true;} return false;} template<typename T> inline bool chmax(T& a, T b){if(a < b){a = b; return true;} return false;} template<typename T> map<T,int> Counter(vector<T> X){map<T,int> C;for(auto x:X){C[x]++;}; return C;} constexpr ll INF = (1LL<<60); int main(){ ios::sync_with_stdio(false); std::cin.tie(nullptr); ll a,b,c,d; cin >> a >> b >> c >> d; ll D = (a-c)*(a-c) - 8*(b-d); if(D<0){ cout << "No" << endl; return 0; } if(D==0){ cout << "Yes" << endl; return 0; } long double p = (long double)(a + c)/2; long double q = (long double)(b + d)/2; cout << fixed << setprecision(10); cout << p << ' ' << q << endl; return 0; }