結果
| 問題 | No.1178 Can you draw a Circle? |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-08-24 23:26:35 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
WA
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 386 bytes |
| 記録 | |
| コンパイル時間 | 722 ms |
| コンパイル使用メモリ | 74,688 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-07 14:15:47 |
| 合計ジャッジ時間 | 1,294 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 5 WA * 10 |
ソースコード
#include <iostream>
#include <iomanip>
#include <cmath>
#include <limits>
using namespace std;
int main() {
ios::sync_with_stdio(0); cin.tie(0);
double a,b,c,d,e,f;
cin >> a >> b >> c >> d >> e >> f;
double m = (c/(2.0 * sqrt(a))); //sqrt(a) = n
double q = (d/(2.0 * sqrt(b))); //sqrt(b) = l
cout << fixed << setprecision(5) << sqrt((m*m)+(q*q)+f-e) << endl;
return 0;
}