結果
問題 | No.1178 Can you draw a Circle? |
ユーザー |
![]() |
提出日時 | 2020-08-21 21:48:18 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 1,442 bytes |
コンパイル時間 | 2,101 ms |
コンパイル使用メモリ | 195,632 KB |
最終ジャッジ日時 | 2025-01-13 05:38:13 |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 15 |
ソースコード
#include <bits/stdc++.h>/*#include <boost/multiprecision/cpp_dec_float.hpp>#include <boost/multiprecision/cpp_int.hpp>*/#pragma GCC target("avx")#pragma GCC optimize("O3")#pragma GCC optimize("unroll-loops")using namespace std;/*namespace mp = boost::multiprecision;using Bint = mp::cpp_int;using Real = mp::number<mp::cpp_dec_float<1024>>;*/#define ll long long#define INF 9999999999999999#define rep(i,m,n) for(ll i = m;i < n;i++)#define rrep(i,m,n) for(ll i=m-1;i>=n;i--)#define pb(n) push_back(n)#define UE(N) N.erase(unique(N.begin(),N.end()),N.end());#define Sort(n) sort(n.begin(), n.end())#define Rev(n) reverse(n.begin(),n.end())#define Out(S) cout << S << endl#define NeOut(S) cout << S#define HpOut(S) cout << setprecision(50) << S << endl#define Vec(K,L,N,S) vector<L> K(N,S)#define DV(K,L,N,M,S) vector<vector<L>> K(N,vector<L>(M,S))#define TV(K,L,N,M,R,S) vector<vector<vector<L>>> K(N,vector<vector<L>>(M,vector<L>(R,S)))#define pint pair<lli,lli>#define tint tuple<int, int, int>#define paf(L,R) pair<L,R>#define mod 998244353#define MAX 10000010#define ALL(a) a.begin(),a.end()#define chmax(a, b) a = (((a)<(b)) ? (b) : (a))#define chmin(a, b) a = (((a)>(b)) ? (b) : (a))int main(){long double A,B,C,D,E,F,N,K,M,Z,sum=0,num=0,flag=0;string S,T;cin >> A >> B >> C >> D >> E >> F;cout << sqrt(F/A - E/A + (C / (2 * A) ) * (C / (2 * A)) + (D / (2 * A) ) * (D / (2 * A))) << endl;}