結果
| 問題 | No.211 素数サイコロと合成数サイコロ (1) |
| コンテスト | |
| ユーザー |
184
|
| 提出日時 | 2015-05-23 03:12:24 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 403 bytes |
| 記録 | |
| コンパイル時間 | 418 ms |
| コンパイル使用メモリ | 86,560 KB |
| 実行使用メモリ | 7,844 KB |
| 最終ジャッジ日時 | 2026-03-12 09:14:50 |
| 合計ジャッジ時間 | 1,290 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 32 WA * 1 |
ソースコード
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <vector>
#include <queue>
#include <string>
#include <functional>
#include <iostream>
using namespace std;
//namaega184
int main(){
int k;scanf("%d",&k);
int a[10]={2,3,5,7,11,13},b[10]={4,6,8,9,10,12};
int c[200]={};
for(int i=0;i<6;i++)for(int j=0;j<6;j++)c[a[i]*b[j]]++;
printf("%.13f\n",(double)c[k]/36 );
return 0;
}
184