結果
| 問題 |
No.419 直角三角形
|
| コンテスト | |
| ユーザー |
htensai
|
| 提出日時 | 2019-11-19 23:43:44 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 306 bytes |
| コンパイル時間 | 2,278 ms |
| コンパイル使用メモリ | 74,696 KB |
| 実行使用メモリ | 54,348 KB |
| 最終ジャッジ日時 | 2024-10-04 14:18:00 |
| 合計ジャッジ時間 | 6,005 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 17 WA * 3 |
ソースコード
import java.util.*;
public class Main {
public static void main (String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int max = Math.max(a, b);
int min = Math.min(a, b);
System.out.println(Math.sqrt(max * max - min * min));
}
}
htensai