結果

問題 No.1178 Can you draw a Circle?
ユーザー bonKotsubonKotsu
提出日時 2021-01-03 23:12:19
言語 C++14
(gcc 13.2.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 306 bytes
コンパイル時間 1,529 ms
コンパイル使用メモリ 162,564 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-04-21 18:04:08
合計ジャッジ時間 2,695 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 2 ms
5,376 KB
testcase_02 AC 2 ms
5,376 KB
testcase_03 WA -
testcase_04 AC 2 ms
5,376 KB
testcase_05 AC 2 ms
5,376 KB
testcase_06 WA -
testcase_07 AC 2 ms
5,376 KB
testcase_08 AC 2 ms
5,376 KB
testcase_09 AC 3 ms
5,376 KB
testcase_10 AC 2 ms
5,376 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

#define ll long long
#define rep(i, n) for (int i = 0; i < (n); i++)
#define P pair<int, int>

int main() {
  double a, b, c, d, e, f;
  cin >> a >> b >> c >> d >> e >> f;

  cout << fixed << setprecision(10) << sqrt(f - (e/a) + (c*c+d*d)/(4*a*a)) << endl;

}
0