結果
| 問題 | 
                            No.211 素数サイコロと合成数サイコロ (1)
                             | 
                    
| コンテスト | |
| ユーザー | 
                             chacoder1
                         | 
                    
| 提出日時 | 2021-03-17 22:59:37 | 
| 言語 | C++17  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 426 bytes | 
| コンパイル時間 | 1,886 ms | 
| コンパイル使用メモリ | 201,500 KB | 
| 最終ジャッジ日時 | 2025-01-19 18:00:39 | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 30 WA * 3 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i,n) for(int i=0;i<n;i++)
typedef pair<int,int>P;
int main(){
  int a[6]={2,3,5,7,11,13};
  int b[6]={4,6,8,9,10,12};
  map<int,int>mp;
  for(int i=0;i<6;i++){
    for(int j=0;j<6;j++){
      mp[a[i]*b[j]]++;
    }
  }
  int n;
  cin>>n;
  if(mp[n]==1){
    cout<<"0.0277777777777777778"<<endl;
  }
  else{
    cout<<0<<endl;
  }
  return 0;
}
            
            
            
        
            
chacoder1