提出 #1611159
ソースコード 拡げる
#include <bits/stdc++.h>
using namespace std;
int main() {
double x, y, z;
cin >> x >> y >> z;
double b = z/sqrt((x*x)/(y*y) + 1);
double a = x*b/y;
double c = b*(x-a)/(y+b);
printf("%.12f\n", a+c);
return 0;
}
提出情報
| 提出日時 | |
|---|---|
| 問題 | D - くさかべ |
| ユーザ | beet_ga_inai |
| 言語 | C++14 (GCC 5.4.1) |
| 得点 | 1 |
| コード長 | 240 Byte |
| 結果 | AC |
| 実行時間 | 1 ms |
| メモリ | 256 KiB |
ジャッジ結果
| セット名 | sample | all | ||||
|---|---|---|---|---|---|---|
| 得点 / 配点 | 0 / 0 | 1 / 1 | ||||
| 結果 |
|
|
| セット名 | テストケース |
|---|---|
| sample | sample-01.txt, sample-02.txt |
| all | sample-01.txt, sample-02.txt, 01-01.txt, 01-02.txt, 01-03.txt, 01-04.txt, 01-05.txt, 01-06.txt, 01-07.txt, 01-08.txt, 01-09.txt, 01-10.txt, sample-01.txt, sample-02.txt |
| ケース名 | 結果 | 実行時間 | メモリ |
|---|---|---|---|
| 01-01.txt | AC | 1 ms | 256 KiB |
| 01-02.txt | AC | 1 ms | 256 KiB |
| 01-03.txt | AC | 1 ms | 256 KiB |
| 01-04.txt | AC | 1 ms | 256 KiB |
| 01-05.txt | AC | 1 ms | 256 KiB |
| 01-06.txt | AC | 1 ms | 256 KiB |
| 01-07.txt | AC | 1 ms | 256 KiB |
| 01-08.txt | AC | 1 ms | 256 KiB |
| 01-09.txt | AC | 1 ms | 256 KiB |
| 01-10.txt | AC | 1 ms | 256 KiB |
| sample-01.txt | AC | 1 ms | 256 KiB |
| sample-02.txt | AC | 1 ms | 256 KiB |