結果
問題 |
No.419 直角三角形
|
ユーザー |
![]() |
提出日時 | 2016-09-09 22:30:33 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 324 bytes |
コンパイル時間 | 830 ms |
コンパイル使用メモリ | 71,828 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-16 10:24:31 |
合計ジャッジ時間 | 1,524 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 17 WA * 3 |
ソースコード
#include<iostream> #include<string> #include<vector> #include<math.h> #include<iomanip> #include<algorithm> using namespace std; int main() { int a, b,temp; double ans; cin >> a >> b; temp = max(a, b)*max(a, b) - min(a, b)*min(a, b); ans = pow(temp, 0.5); cout << fixed << setprecision(9) << ans << endl; return 0; }