結果
問題 |
No.419 直角三角形
|
ユーザー |
![]() |
提出日時 | 2017-03-10 16:13:19 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 275 bytes |
コンパイル時間 | 1,238 ms |
コンパイル使用メモリ | 158,532 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-24 07:52:34 |
合計ジャッジ時間 | 2,171 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 17 WA * 3 |
ソースコード
#include<bits/stdc++.h> using namespace std; #define INF 1000000000 #define REP(i,n) for(int (i)=0;(i)<(int)(n);(i)++) typedef long long LL; double a,b; int main(){ cin>>a>>b; cout<<setprecision(10)<<sqrt(max(a,b)*max(a,b)-min(a,b)*min(a,b))<<endl;; return 0; }