結果
| 問題 | 
                            No.419 直角三角形
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2018-05-03 22:56:55 | 
| 言語 | C  (gcc 13.3.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 229 bytes | 
| コンパイル時間 | 167 ms | 
| コンパイル使用メモリ | 30,208 KB | 
| 実行使用メモリ | 6,948 KB | 
| 最終ジャッジ日時 | 2024-06-28 00:52:59 | 
| 合計ジャッジ時間 | 1,010 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 17 WA * 3 | 
ソースコード
#include <stdio.h>
#include <math.h>
int main(void)
{
	float a, b, c, d;
	scanf("%f%f", &a, &b);
	c = a * a - b * b;
	d = b * b - a * a;
	printf("%f\n", sqrt(c) < sqrt(d) ? sqrt(fabs(c)) : sqrt(fabs(d)));
	return 0;
}