結果

問題 No.211 素数サイコロと合成数サイコロ (1)
ユーザー ffmm00
提出日時 2015-06-01 17:33:51
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 432 bytes
コンパイル時間 3,509 ms
コンパイル使用メモリ 74,128 KB
実行使用メモリ 54,100 KB
最終ジャッジ日時 2024-07-06 13:14:25
合計ジャッジ時間 7,473 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 30 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class N211 {

	public static void main(String[] args) {
		Scanner sca = new Scanner(System.in);
		int K = sca.nextInt();
		int[] so = { 2, 3, 5, 7, 11, 13 };
		int[] go = { 4, 6, 8, 9, 10, 12 };

		for (int i = 0; i < 6; i++) {
			for (int j = 0; j < 6; j++) {
				if (so[i] * go[j] == K) {
					System.out.println(0.0277777777777777778);
					return;
				}
			}
		}

		System.out.println(0);
	}

}
0