結果
| 問題 | 
                            No.419 直角三角形
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2016-09-10 22:03:15 | 
| 言語 | C++14  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 273 bytes | 
| コンパイル時間 | 608 ms | 
| コンパイル使用メモリ | 72,676 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-11-16 20:09:35 | 
| 合計ジャッジ時間 | 1,431 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 17 WA * 3 | 
ソースコード
#include <iostream>
#include <cstdio>
#include <vector>
#include <algorithm>
#include <utility>
#include <cmath>
using namespace std;
int main() {
	int a, b;
	cin >> a >> b;
	if (a < b) {
		swap(a, b);
	}
	double c = sqrt(a*a - b*b);
	printf("%.10f\n", c);
	return 0;
}