結果
| 問題 | 
                            No.211 素数サイコロと合成数サイコロ (1)
                             | 
                    
| コンテスト | |
| ユーザー | 
                             yun_app
                         | 
                    
| 提出日時 | 2016-05-12 10:51:46 | 
| 言語 | Java  (openjdk 23)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 53 ms / 1,000 ms | 
| コード長 | 744 bytes | 
| コンパイル時間 | 1,952 ms | 
| コンパイル使用メモリ | 74,232 KB | 
| 実行使用メモリ | 37,268 KB | 
| 最終ジャッジ日時 | 2024-06-25 22:57:29 | 
| 合計ジャッジ時間 | 4,644 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 33 | 
ソースコード
/* 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);
    }
}
            
            
            
        
            
yun_app