結果
問題 |
No.211 素数サイコロと合成数サイコロ (1)
|
ユーザー |
![]() |
提出日時 | 2017-09-21 20:15:24 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 712 bytes |
コンパイル時間 | 1,609 ms |
コンパイル使用メモリ | 77,496 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-08 19:33:42 |
合計ジャッジ時間 | 2,106 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 30 WA * 3 |
ソースコード
#include <iostream> #include <vector> #include <string> #include <cstring> #include <math.h> #include <cmath> #include <limits.h> #include <map> #include <set> #include <queue> #include <algorithm> #include <functional> #include <stdio.h> using namespace std; long long MOD = 1000000007; int main() { double ans; int p[6] = { 2,3,5,7,11,13 }; int c[6] = { 4,6,8,9,10,12 }; int K; cin >> K; for ( int i = 0; i < 6; i++ ) { for ( int j = 0; j < 6; j++ ) { if ( p[i] * c[j] == K ) { ans = 1.0/36.0; printf( "%.13f", ans ); return 0; } } } ans = 0; printf( "%.13f", ans ); return 0; }