結果
| 問題 |
No.1178 Can you draw a Circle?
|
| コンテスト | |
| ユーザー |
chacoder1
|
| 提出日時 | 2021-06-27 15:53:42 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 282 bytes |
| コンパイル時間 | 2,151 ms |
| コンパイル使用メモリ | 193,444 KB |
| 最終ジャッジ日時 | 2025-01-22 14:38:30 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 15 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i,n) for(int i=0;i<n;i++)
#define int long long
signed main(){
double a,b,c,d,e,f,x,y,r;
cin>>a>>b>>c>>d>>e>>f;
x=c/a/2;
y=d/a/2;
r=f/a-e/a+x*x+y*y;
cout<<pow(r,0.5)<<endl;
return 0;
}
chacoder1