結果

問題 No.1178 Can you draw a Circle?
ユーザー kaede2020kaede2020
提出日時 2020-08-21 22:26:28
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 520 bytes
コンパイル時間 1,579 ms
コンパイル使用メモリ 165,636 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-07 14:02:24
合計ジャッジ時間 2,243 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 9 WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
template <typename T> bool chmax(T &u, const T z) { if (u < z) {u = z; return true;} else return false; }
template <typename T> bool chmin(T &u, const T z) { if (u > z) {u = z; return true;} else return false; }
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define ll long long 

int main(){
	double a,b,c,d,e,f;
	cin>>a>>b>>c>>d>>e>>f;
	double r;
	r=f-e+(c*c)/((double)4*a*a)+(d*d)/((double)4*b*b);
	r=sqrt(r);
	cout<<fixed<<setprecision(12)<<r<<endl;
	return 0;
}
0