結果

問題 No.1487 ぺんぎんさんかっけー
ユーザー ks2mks2m
提出日時 2021-04-23 21:32:29
言語 Java21
(openjdk 21)
結果
AC  
実行時間 128 ms / 1,000 ms
コード長 355 bytes
コンパイル時間 2,344 ms
コンパイル使用メモリ 71,760 KB
実行使用メモリ 58,056 KB
最終ジャッジ日時 2023-09-17 11:48:29
合計ジャッジ時間 8,711 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
56,404 KB
testcase_01 AC 125 ms
56,148 KB
testcase_02 AC 125 ms
55,564 KB
testcase_03 AC 124 ms
56,240 KB
testcase_04 AC 126 ms
55,908 KB
testcase_05 AC 125 ms
58,056 KB
testcase_06 AC 123 ms
55,984 KB
testcase_07 AC 124 ms
56,180 KB
testcase_08 AC 123 ms
56,224 KB
testcase_09 AC 123 ms
56,028 KB
testcase_10 AC 124 ms
55,972 KB
testcase_11 AC 126 ms
56,028 KB
testcase_12 AC 124 ms
56,060 KB
testcase_13 AC 124 ms
56,176 KB
testcase_14 AC 126 ms
56,020 KB
testcase_15 AC 124 ms
55,828 KB
testcase_16 AC 124 ms
55,984 KB
testcase_17 AC 124 ms
55,664 KB
testcase_18 AC 125 ms
55,840 KB
testcase_19 AC 125 ms
56,168 KB
testcase_20 AC 127 ms
55,948 KB
testcase_21 AC 125 ms
55,856 KB
testcase_22 AC 127 ms
55,988 KB
testcase_23 AC 128 ms
56,172 KB
testcase_24 AC 124 ms
56,276 KB
testcase_25 AC 122 ms
55,740 KB
testcase_26 AC 123 ms
55,848 KB
testcase_27 AC 127 ms
55,792 KB
testcase_28 AC 124 ms
55,620 KB
testcase_29 AC 127 ms
55,872 KB
testcase_30 AC 128 ms
53,944 KB
testcase_31 AC 122 ms
55,792 KB
testcase_32 AC 126 ms
56,344 KB
testcase_33 AC 126 ms
55,996 KB
testcase_34 AC 127 ms
55,912 KB
testcase_35 AC 124 ms
55,896 KB
testcase_36 AC 128 ms
55,992 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

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 c = sc.nextInt();
		sc.close();

		double s = (a + b + c) / 2.0;
		double x = Math.sqrt(s * (s - a) * (s - b) * (s - c));
		System.out.println(x / 4);
	}
}
0