結果

問題 No.211 素数サイコロと合成数サイコロ (1)
ユーザー tntan
提出日時 2016-04-11 17:25:19
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 306 bytes
コンパイル時間 1,392 ms
コンパイル使用メモリ 160,216 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-04 06:30:13
合計ジャッジ時間 2,303 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 32 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;

int main()
{
	int a[6]={2,3,5,7,11,13};
	double b[200];
	vector<int>v;
	set<int>s;
	for(int i=4;i<=12;i+=2)
	{
		for(int j=0;j<6;j++)
		{
			b[i*a[j]]++;
		}
	}
	int n;
	cin>>n;
	cout<<fixed<<setprecision(20)<<b[n]/36<<endl;
	return 0;
}
0