結果
| 問題 | No.419 直角三角形 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-09-15 22:42:48 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 256 bytes |
| 記録 | |
| コンパイル時間 | 304 ms |
| コンパイル使用メモリ | 62,364 KB |
| 実行使用メモリ | 7,972 KB |
| 最終ジャッジ日時 | 2026-05-12 06:41:07 |
| 合計ジャッジ時間 | 1,228 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / tmp-judge_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 17 WA * 3 |
ソースコード
#include <cmath>
#include <cstdio>
#include <algorithm>
#define rep(i, n) for(int i = 0; i < (n); ++i)
using namespace std;
int a, b;
int main(){
scanf("%d%d", &a, &b);
if(a > b){
swap(a, b);
}
printf("%.8lf\n", sqrt(b * b - a * a));
return 0;
}