結果
| 問題 |
No.211 素数サイコロと合成数サイコロ (1)
|
| コンテスト | |
| ユーザー |
spacia
|
| 提出日時 | 2015-12-23 14:00:41 |
| 言語 | Java (openjdk 23) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 544 bytes |
| コンパイル時間 | 1,811 ms |
| コンパイル使用メモリ | 74,616 KB |
| 実行使用メモリ | 37,152 KB |
| 最終ジャッジ日時 | 2024-09-18 21:43:57 |
| 合計ジャッジ時間 | 4,428 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 32 RE * 1 |
ソースコード
import java.io.*;
import java.util.*;
class Main211 {
public static void out (Object o) {
System.out.println(o);
}
public static void main (String[] args) throws IOException {
BufferedReader br =
new BufferedReader(new InputStreamReader(System.in));
int k = Integer.parseInt(br.readLine());
int max = 200;
int[] sum = new int[max];
int[] dice1 = {2,3,5,7,11,13};
int[] dice2 = {4,6,8,9,10,12};
for (int d1 : dice1) {
for (int d2 : dice2) {
sum[d1 * d2]++;
}
}
out((double)sum[k] / 36);
}
}
spacia