結果

問題 No.211 素数サイコロと合成数サイコロ (1)
ユーザー yun_appyun_app
提出日時 2016-05-12 10:51:46
言語 Java21
(openjdk 21)
結果
AC  
実行時間 43 ms / 1,000 ms
コード長 744 bytes
コンパイル時間 2,864 ms
コンパイル使用メモリ 70,948 KB
実行使用メモリ 49,584 KB
最終ジャッジ日時 2023-09-08 05:44:08
合計ジャッジ時間 4,718 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
49,040 KB
testcase_01 AC 42 ms
49,048 KB
testcase_02 AC 41 ms
47,044 KB
testcase_03 AC 42 ms
49,300 KB
testcase_04 AC 42 ms
49,240 KB
testcase_05 AC 42 ms
49,196 KB
testcase_06 AC 42 ms
49,088 KB
testcase_07 AC 43 ms
49,120 KB
testcase_08 AC 42 ms
49,228 KB
testcase_09 AC 42 ms
49,092 KB
testcase_10 AC 42 ms
49,164 KB
testcase_11 AC 42 ms
49,160 KB
testcase_12 AC 42 ms
49,176 KB
testcase_13 AC 42 ms
49,052 KB
testcase_14 AC 42 ms
49,224 KB
testcase_15 AC 43 ms
49,072 KB
testcase_16 AC 42 ms
49,148 KB
testcase_17 AC 41 ms
49,336 KB
testcase_18 AC 42 ms
49,384 KB
testcase_19 AC 43 ms
49,392 KB
testcase_20 AC 42 ms
47,080 KB
testcase_21 AC 42 ms
49,184 KB
testcase_22 AC 42 ms
49,148 KB
testcase_23 AC 43 ms
49,280 KB
testcase_24 AC 43 ms
49,220 KB
testcase_25 AC 43 ms
49,364 KB
testcase_26 AC 43 ms
49,220 KB
testcase_27 AC 43 ms
49,392 KB
testcase_28 AC 43 ms
49,332 KB
testcase_29 AC 43 ms
49,292 KB
testcase_30 AC 43 ms
49,148 KB
testcase_31 AC 43 ms
49,584 KB
testcase_32 AC 43 ms
49,100 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
    private static int[] SOSUU = new int[]{2,3,5,7,11,13};
    private static int[] GOSEI = new int[]{4,6,8,9,10,12};
    public static void main (String[] args) throws java.lang.Exception
    {
        // your code goes here
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int n = Integer.parseInt(br.readLine());
        int cnt = 0;
        for(int s:SOSUU)
        for(int g:GOSEI){
            if(s*g==n){
                cnt++;
            }
        }
        System.out.println(cnt/36.0);
    }

}
0