結果
問題 | No.1064 ∪∩∩ / Cup Cap Cap |
ユーザー |
👑 |
提出日時 | 2022-01-13 10:23:09 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 359 bytes |
コンパイル時間 | 824 ms |
コンパイル使用メモリ | 70,420 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-16 14:24:47 |
合計ジャッジ時間 | 2,051 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 22 WA * 14 |
ソースコード
#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)-4*(b-d) < 0){cout << "No" << endl;}else if((a-c)*(a-c)-4*(b-d) == 0){cout << "Yes" << endl;}else{cout << fixed << setprecision(10) << (double)(a+c)/2 << " " << (double)(b+d)/2 << endl;}}