結果

問題 No.1180 無限和
ユーザー 遭難者遭難者
提出日時 2020-07-28 16:04:47
言語 Java21
(openjdk 21)
結果
AC  
実行時間 116 ms / 1,000 ms
コード長 303 bytes
コンパイル時間 1,676 ms
コンパイル使用メモリ 74,004 KB
実行使用メモリ 54,496 KB
最終ジャッジ日時 2024-04-23 06:22:49
合計ジャッジ時間 7,213 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 106 ms
53,168 KB
testcase_01 AC 103 ms
53,044 KB
testcase_02 AC 97 ms
52,396 KB
testcase_03 AC 103 ms
52,572 KB
testcase_04 AC 113 ms
54,292 KB
testcase_05 AC 104 ms
52,852 KB
testcase_06 AC 104 ms
53,116 KB
testcase_07 AC 107 ms
52,988 KB
testcase_08 AC 104 ms
52,988 KB
testcase_09 AC 113 ms
54,044 KB
testcase_10 AC 100 ms
52,872 KB
testcase_11 AC 111 ms
54,056 KB
testcase_12 AC 104 ms
52,916 KB
testcase_13 AC 109 ms
54,248 KB
testcase_14 AC 110 ms
53,984 KB
testcase_15 AC 104 ms
53,328 KB
testcase_16 AC 108 ms
53,968 KB
testcase_17 AC 102 ms
52,768 KB
testcase_18 AC 100 ms
52,872 KB
testcase_19 AC 108 ms
53,672 KB
testcase_20 AC 99 ms
53,052 KB
testcase_21 AC 108 ms
53,972 KB
testcase_22 AC 111 ms
53,896 KB
testcase_23 AC 101 ms
52,892 KB
testcase_24 AC 101 ms
52,944 KB
testcase_25 AC 112 ms
53,796 KB
testcase_26 AC 102 ms
52,980 KB
testcase_27 AC 104 ms
53,048 KB
testcase_28 AC 116 ms
54,496 KB
testcase_29 AC 102 ms
52,716 KB
testcase_30 AC 104 ms
52,616 KB
testcase_31 AC 102 ms
53,124 KB
testcase_32 AC 109 ms
53,760 KB
testcase_33 AC 103 ms
53,088 KB
testcase_34 AC 109 ms
53,928 KB
testcase_35 AC 102 ms
52,872 KB
testcase_36 AC 105 ms
53,164 KB
testcase_37 AC 103 ms
52,760 KB
testcase_38 AC 100 ms
53,012 KB
testcase_39 AC 111 ms
54,168 KB
testcase_40 AC 109 ms
54,024 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        sc.close();
        double s = Math.PI * Math.PI / 6;
        s = Math.pow(s , n) * 1.0 / n;
        System.out.println((int) s);
    }
}
0