結果

問題 No.211 素数サイコロと合成数サイコロ (1)
ユーザー tntan
提出日時 2016-04-11 17:24:23
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 306 bytes
コンパイル時間 1,426 ms
コンパイル使用メモリ 161,348 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-10-04 06:29:11
合計ジャッジ時間 2,337 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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=2;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