結果

問題 No.212 素数サイコロと合成数サイコロ (2)
ユーザー k
提出日時 2020-06-28 06:05:26
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 3 ms / 5,000 ms
コード長 366 bytes
コンパイル時間 1,949 ms
コンパイル使用メモリ 192,860 KB
最終ジャッジ日時 2025-01-11 13:13:34
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;

#define REP(i,n) for(int i=0; i<(int)(n); i++)

int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);

  int p, c;
  cin >> p >> c;

  double x = (2 + 3 + 5 + 7 + 11 + 13) / 6.0;
  double y = (4 + 6 + 8 + 9 + 10 + 12) / 6.0;

  cout << fixed << setprecision(15) << pow(x, p) * pow(y, c) << endl;
  
  return 0;
}
0