結果
| 問題 | No.1487 ぺんぎんさんかっけー |
| コンテスト | |
| ユーザー |
ks2m
|
| 提出日時 | 2021-04-23 21:32:29 |
| 言語 | Java (openjdk 25.0.2) |
| 結果 |
AC
|
| 実行時間 | 57 ms / 1,000 ms |
| コード長 | 355 bytes |
| 記録 | |
| コンパイル時間 | 2,151 ms |
| コンパイル使用メモリ | 82,392 KB |
| 実行使用メモリ | 41,728 KB |
| 最終ジャッジ日時 | 2026-03-25 15:37:37 |
| 合計ジャッジ時間 | 4,880 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 37 |
ソースコード
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);
}
}
ks2m