結果

問題 No.211 素数サイコロと合成数サイコロ (1)
ユーザー h_noson
提出日時 2015-12-29 01:17:16
言語 C++11
(gcc 13.3.0)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 331 bytes
コンパイル時間 539 ms
コンパイル使用メモリ 60,116 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-06 23:38:34
合計ジャッジ時間 1,646 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 32 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

#include "iostream"
#include "vector"
using namespace std;

int main(){
    vector<int> prime = {2,3,5,7,11,13};
    vector<int> composite = {4,6,8,9,10,12};
    vector<int> freq(12*13+1);
    for (auto x : prime) for (auto y : composite) freq[x*y]++;
    int k;
    cin >> k;
    printf("%.12f\n",freq[k] / 36.0);
    return 0;
}
0