結果
| 問題 |
No.419 直角三角形
|
| コンテスト | |
| ユーザー |
manini
|
| 提出日時 | 2016-09-11 01:11:31 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 309 bytes |
| コンパイル時間 | 2,068 ms |
| コンパイル使用メモリ | 73,840 KB |
| 実行使用メモリ | 41,284 KB |
| 最終ジャッジ日時 | 2024-11-17 00:10:35 |
| 合計ジャッジ時間 | 5,571 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 17 WA * 3 |
ソースコード
import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
long a=s.nextInt();
long b=s.nextInt();
long max=Math.max(a, b);
long min=Math.min(a, b);
double c=Math.sqrt((double)max*max-min*min);
System.out.println(c);
}
}
manini