結果
問題 |
No.1064 ∪∩∩ / Cup Cap Cap
|
ユーザー |
|
提出日時 | 2021-07-26 00:57:28 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 659 bytes |
コンパイル時間 | 1,406 ms |
コンパイル使用メモリ | 171,560 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-21 09:28:56 |
合計ジャッジ時間 | 2,441 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 36 |
ソースコード
//#include <atcoder/all> #include <bits/stdc++.h> using namespace std; //using namespace atcoder; using ll = long long; #define all(A) A.begin(),A.end() using vll = vector<ll>; #define rep(i, n) for (long long i = 0; i < (long long)(n); i++) using Graph = vector<vector<ll>>; Graph G; vll dist; vector<bool> seen; set<pair<ll, ll>> S; ll gcd(ll(a), ll(b)) { ll c = a; while (a % b != 0) { c = a % b; a = b; b = c; } return b; } int main() { ll A,B,C,D; cin>>A>>B>>C>>D; if((A-C)*(A-C)-8*(B-D)<0){ cout<<"No"<<endl; } else if((A-C)*(A-C)-8*(B-D)==0){ cout<<"Yes"<<endl; } else{ cout<<double(A+C)/2.0<<" "<<double(B+D)/2.0<<endl; } }