結果
問題 | No.1064 ∪∩∩ / Cup Cap Cap |
ユーザー |
|
提出日時 | 2021-07-26 00:57:06 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 658 bytes |
コンパイル時間 | 1,756 ms |
コンパイル使用メモリ | 171,288 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-21 09:28:15 |
合計ジャッジ時間 | 3,151 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 WA * 1 |
other | AC * 25 WA * 11 |
ソースコード
//#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; } }