結果
| 問題 |
No.212 素数サイコロと合成数サイコロ (2)
|
| コンテスト | |
| ユーザー |
nak3
|
| 提出日時 | 2017-03-30 21:27:55 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 410 bytes |
| コンパイル時間 | 1,127 ms |
| コンパイル使用メモリ | 159,612 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-07 03:13:33 |
| 合計ジャッジ時間 | 1,688 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define INF 2000000000
#define MOD 1000000007
typedef long long ll;
typedef pair<int, int> P;
int main()
{
int p;
int c;
cin >> p >> c;
double pp[6] = {2,3,5,7,11,13};
double cc[6] = {4,6,8,9,10,12};
double psum = accumulate(pp, pp+6, 0);
double csum = accumulate(cc, cc+6, 0);
double ret = pow(psum/6,p) * pow(csum/6,c);
printf("%.12f\n",ret);
}
nak3