結果
| 問題 |
No.1178 Can you draw a Circle?
|
| コンテスト | |
| ユーザー |
沙耶花
|
| 提出日時 | 2020-08-21 21:35:22 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 386 bytes |
| コンパイル時間 | 2,127 ms |
| コンパイル使用メモリ | 194,036 KB |
| 最終ジャッジ日時 | 2025-01-13 05:19:20 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 15 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define modulo 1000000007
#define mod(mod_x) ((((long long)mod_x+modulo))%modulo)
#define Inf 2000000005
int main(){
double a,b,c,d,e,f;
cin>>a>>b>>c>>d>>e>>f;
double ans = f-e;
ans += a*pow(c/(2.0*a),2.0);
ans += b*pow(d/(2.0*b),2.0);
ans /= a;
ans = sqrt(ans);
cout<<fixed<<setprecision(10)<<ans<<endl;
return 0;
}
沙耶花