結果
| 問題 |
No.211 素数サイコロと合成数サイコロ (1)
|
| コンテスト | |
| ユーザー |
Konton7
|
| 提出日時 | 2020-01-13 18:46:56 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 340 bytes |
| コンパイル時間 | 2,360 ms |
| コンパイル使用メモリ | 191,480 KB |
| 最終ジャッジ日時 | 2025-01-08 17:21:51 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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++;
cout << ans * 1.0 / 36.0 << endl;
return 0;
}
Konton7