結果
問題 |
No.211 素数サイコロと合成数サイコロ (1)
|
ユーザー |
![]() |
提出日時 | 2020-01-13 18:50:27 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 339 bytes |
コンパイル時間 | 2,064 ms |
コンパイル使用メモリ | 191,244 KB |
最終ジャッジ日時 | 2025-01-08 17:22:03 |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 25 WA * 8 |
ソースコード
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main(){ int k; cin >> k; int ans = 0; int c[6] = {2,3,5,7,11,13}; int p[6] = {4,6,8,9,10,12}; for (auto x : c) for (auto y : p) if (x * y == k) ans++; printf("%.10f\n" ,(ans / 36.0)); return 0; }