結果
問題 |
No.419 直角三角形
|
ユーザー |
![]() |
提出日時 | 2017-03-02 23:23:51 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 289 bytes |
コンパイル時間 | 560 ms |
コンパイル使用メモリ | 61,220 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-13 01:54:43 |
合計ジャッジ時間 | 1,383 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 17 WA * 3 |
ソースコード
#include<iostream> #include<algorithm> #include<string> #include<cmath> using namespace std; //typedef __int64 LL; int main(){ double a,b; cin>>a>>b; if(a>b)cout<<sqrt(a*a-b*b)<<endl; if(a<b)cout<<sqrt(-a*a+b*b)<<endl; if(a==b)cout<<sqrt(a*a+b*b)<<endl; return 0; }