結果

問題 No.735 接線
ユーザー hiro_ei1812
提出日時 2019-09-14 19:07:23
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 275 bytes
コンパイル時間 505 ms
コンパイル使用メモリ 66,300 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-06 10:36:25
合計ジャッジ時間 1,643 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 29 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <cmath>
#include <iomanip>
#include <cstdio>
using namespace std;

int main(){
    float r,d;
    long double AL;

    cin>>r>>d;

    r*=r;  //rの二乗
    d*=d;  //dの二乗

    AL=sqrt(d-r);

    printf("%10.12Lf\n",AL);
    return (0);
}
0