結果
問題 | No.1064 ∪∩∩ / Cup Cap Cap |
ユーザー |
👑 |
提出日時 | 2022-01-13 10:25:36 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 359 bytes |
コンパイル時間 | 613 ms |
コンパイル使用メモリ | 68,992 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-16 14:28:21 |
合計ジャッジ時間 | 1,743 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 36 |
ソースコード
#include <iostream> #include <iomanip> using namespace std; int main(){ long long 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 << fixed << setprecision(10) << (double)(a+c)/2 << " " << (double)(b+d)/2 << endl; } }