結果
| 問題 |
No.419 直角三角形
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-09-19 01:09:46 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 310 bytes |
| コンパイル時間 | 2,218 ms |
| コンパイル使用メモリ | 193,664 KB |
| 最終ジャッジ日時 | 2025-01-24 15:50:08 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 17 WA * 3 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(void)
{
cin.tie(0);
ios::sync_with_stdio(false);
int a,b;
cin >> a >> b;
int A = min(a,b);
int B = max(a,b);
double c = sqrt(B*B - A*A);
cout << fixed;
cout.precision(16);
cout << c << '\n';
return 0;
}