結果

問題 No.2070 Icosahedron
ユーザー Maeda
提出日時 2025-08-28 09:22:25
言語 Java
(openjdk 23)
結果
AC  
実行時間 115 ms / 2,000 ms
コード長 244 bytes
コンパイル時間 2,095 ms
コンパイル使用メモリ 76,672 KB
実行使用メモリ 46,668 KB
最終ジャッジ日時 2025-08-28 09:22:29
合計ジャッジ時間 4,333 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) {
    	Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		double ans = (15+(5* Math.sqrt(5)))/12 * n * n * n;
		System.out.println(ans);
    }
}
0