結果
| 問題 |
No.419 直角三角形
|
| コンテスト | |
| ユーザー |
hhgfhn1
|
| 提出日時 | 2018-10-29 19:50:01 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 327 bytes |
| コンパイル時間 | 2,330 ms |
| コンパイル使用メモリ | 74,224 KB |
| 実行使用メモリ | 41,492 KB |
| 最終ジャッジ日時 | 2024-11-19 08:09:48 |
| 合計ジャッジ時間 | 5,872 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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