結果
| 問題 |
No.419 直角三角形
|
| コンテスト | |
| ユーザー |
ATS
|
| 提出日時 | 2016-09-09 22:27:16 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 576 bytes |
| コンパイル時間 | 1,109 ms |
| コンパイル使用メモリ | 86,216 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-16 10:07:59 |
| 合計ジャッジ時間 | 1,913 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 17 WA * 3 |
ソースコード
#include <algorithm>
#include <cstdio>
#include <ctype.h>
#include <functional>
#include <iostream>
#include <iomanip>
#include <cassert>
#include <cfloat>
#include <climits>
#include <complex>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <time.h>
#include <vector>
#include <iomanip>
using namespace std;
int main() {
int a,b;
cin >> a>>b;
if (a <= b) {
swap(a, b);
}
cout
<< fixed
<< setprecision(10)
<< sqrt(a*a - b*b) << endl;
return 0;
}
ATS