結果

問題 No.419 直角三角形
ユーザー newlife171128newlife171128
提出日時 2018-01-15 21:08:19
言語 C++11
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 385 bytes
コンパイル時間 682 ms
コンパイル使用メモリ 81,564 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-24 03:29:26
合計ジャッジ時間 1,508 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 17 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <iomanip>
#include <vector>
#include <algorithm>
#include <string>
#include <sstream>
#include <cmath>
#include <stack>
#include <cctype>
#include <stdio.h>
#include <map>
#include <string.h>

using namespace std;


int main() {

	double a=0.0,b=0.0;

	cin>>a>>b;

	if(a<b){
		swap(a,b);
	}

	cout<<setprecision(10)<<sqrt((a*a)-(b*b))<<endl;

	return 0;
}
0