結果

問題 No.1178 Can you draw a Circle?
ユーザー 👑 CleyL
提出日時 2022-08-17 10:48:41
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 315 bytes
コンパイル時間 938 ms
コンパイル使用メモリ 90,832 KB
最終ジャッジ日時 2025-01-30 23:23:28
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 9 WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <iomanip>
#include <cmath>
using namespace std;
int main(){
    int a,b,c,d,e,f;cin>>a>>b>>c>>d>>e>>f;
    double A = a;
    double B = b;
    double aa = -c/(2*A);
    double bb = -d/(2*B);
    double r2 = aa*aa+bb*bb-(e-f);
    cout << fixed << setprecision(10) << sqrt(r2) << endl;
}
0