結果
| 問題 |
No.419 直角三角形
|
| コンテスト | |
| ユーザー |
vjudge1
|
| 提出日時 | 2024-12-22 13:08:16 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 272 bytes |
| コンパイル時間 | 259 ms |
| コンパイル使用メモリ | 38,016 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-12-22 13:08:18 |
| 合計ジャッジ時間 | 1,137 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 18 WA * 2 |
ソースコード
#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);
if(a==b) printf("%.8lf",sqrt(2*a));
else printf("%.8lf",sqrt(abs(a*a-b*b)));
return 0;
}
vjudge1