結果

問題 No.211 素数サイコロと合成数サイコロ (1)
ユーザー dazy
提出日時 2018-10-11 15:03:40
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 323 bytes
コンパイル時間 1,673 ms
コンパイル使用メモリ 166,736 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-12 17:37:01
合計ジャッジ時間 2,302 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 25 WA * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

#include "bits/stdc++.h"
using namespace std;

int main(){
    int a[] = {8,12,16,18,20,24,12,18,24,27,30,36,20,30,40,45,50,60,28,42,56,63,70,84,44,66,88,99,110,132,52,78,104,117,130,156};
    int in, cnt=0;
    cin >> in;
    for(int i=0; i<36; i++){
        if(a[i]==in) cnt++;
    }
    cout << (double)cnt/36 << endl;
}
0