結果

問題 No.419 直角三角形
ユーザー vjudge1
提出日時 2024-12-22 13:06:43
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 229 bytes
コンパイル時間 358 ms
コンパイル使用メモリ 38,144 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-12-22 13:06:47
合計ジャッジ時間 1,233 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 17 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<cstdio>
#include<cmath>
using namespace std;
int main() {
  //freopen("triangle.in","r",stdin);
  //freopen("triangle.out","w",stdout);
  int a,b; scanf("%d %d",&a,&b);
  printf("%.8lf",sqrt(abs(a*a-b*b)));
  return 0;
}
0