結果

問題 No.1622 三角形の面積
ユーザー みーすけ
提出日時 2021-10-03 14:22:38
言語 Java
(openjdk 23)
結果
AC  
実行時間 160 ms / 2,000 ms
コード長 305 bytes
コンパイル時間 2,250 ms
コンパイル使用メモリ 74,756 KB
実行使用メモリ 41,400 KB
最終ジャッジ日時 2024-07-21 08:26:52
合計ジャッジ時間 3,852 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int t = sc.nextInt();
        for (int i = 0; i < t; i++) {
            int r = sc.nextInt();
            System.out.println(3 * Math.sqrt(3) * r * r / 4);
        }
    }
}
0