提出 #19009877


ソースコード 拡げる

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

double solve1(double a, double b, double x)
{
    double t = (b / a - x / (a * a * a)) * 2;
    return atan(t) / M_PI * 180;
}

double solve2(double a, double b, double x) {
    double t = a * b * b / x / 2;
    return atan(t) / M_PI * 180;
}

int main()
{
    double a, b, x;
    cin >> a >> b >> x;
    double half = a * a * b / 2;
    double ret = (x > half) ? solve1(a, b, x) : solve2(a, b, x);
    cout << setprecision(10) << ret << endl;
}

提出情報

提出日時
問題 D - Water Bottle
ユーザ atug
言語 C++ (GCC 9.2.1)
得点 400
コード長 493 Byte
結果 AC
実行時間 4 ms
メモリ 4100 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 400 / 400
結果
AC × 3
AC × 15
セット名 テストケース
Sample sample00, sample01, sample02
All handmade03, handmade04, random05, random06, random07, random08, random09, random10, random11, random12, random13, random14, sample00, sample01, sample02
ケース名 結果 実行時間 メモリ
handmade03 AC 3 ms 3956 KiB
handmade04 AC 3 ms 3876 KiB
random05 AC 3 ms 4012 KiB
random06 AC 2 ms 3924 KiB
random07 AC 2 ms 3944 KiB
random08 AC 3 ms 3880 KiB
random09 AC 4 ms 3952 KiB
random10 AC 3 ms 3940 KiB
random11 AC 3 ms 3936 KiB
random12 AC 4 ms 4100 KiB
random13 AC 2 ms 3940 KiB
random14 AC 2 ms 4036 KiB
sample00 AC 2 ms 3968 KiB
sample01 AC 2 ms 3892 KiB
sample02 AC 2 ms 3948 KiB