結果
| 問題 | No.419 直角三角形 |
| コンテスト | |
| ユーザー |
hhgfhn1
|
| 提出日時 | 2018-10-29 19:50:01 |
| 言語 | Java (openjdk 25.0.2) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 327 bytes |
| 記録 | |
| コンパイル時間 | 1,610 ms |
| コンパイル使用メモリ | 81,712 KB |
| 実行使用メモリ | 43,384 KB |
| 最終ジャッジ日時 | 2026-05-13 16:02:29 |
| 合計ジャッジ時間 | 4,057 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 17 WA * 3 |
ソースコード
import java.util.Scanner;
public class Main {
@SuppressWarnings("resource")
public static void main(String args[]) {
Scanner scanner = new Scanner(System.in);
int a=scanner.nextInt();
int b=scanner.nextInt();
double c=Math.pow(Math.max(a, b),2)-Math.pow(Math.min(a, b), 2);
System.out.println(Math.sqrt(c));
}
}
hhgfhn1