結果
| 問題 | No.419 直角三角形 |
| コンテスト | |
| ユーザー |
Bantako
|
| 提出日時 | 2017-07-13 19:21:37 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 155 bytes |
| 記録 | |
| コンパイル時間 | 251 ms |
| コンパイル使用メモリ | 49,396 KB |
| 実行使用メモリ | 7,972 KB |
| 最終ジャッジ日時 | 2026-04-24 07:02:05 |
| 合計ジャッジ時間 | 1,506 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
コンパイルメッセージ
main.cpp:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
4 | main(){
| ^~~~
ソースコード
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
main(){
int A,B;
scanf("%d%d",&A,&B);
printf("%f\n",A==B?sqrt(2)*A:sqrt(abs(A*A-B*B)));
}
Bantako