結果

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

ソースコード

diff #

#include <bits/stdc++.h>
#define INF 2000000000000000000
#define ll long long
using namespace std;

int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  ll a, b, c, d, e, f;
  cin >> a >> b >> c >> d >> e >> f;
  ll ans = f - e + a * (pow(c / (-2.0 * a), 2) + pow(d / (-2.0 * a), 2));
  cout << pow(ans, 0.5) << "\n";
}
0