結果

問題 No.212 素数サイコロと合成数サイコロ (2)
ユーザー a01sa01to
提出日時 2025-02-18 00:35:16
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 466 bytes
コンパイル時間 3,693 ms
コンパイル使用メモリ 273,036 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2025-02-18 00:35:21
合計ジャッジ時間 4,134 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
#ifdef LOCAL
  #include "settings/debug.cpp"
#else
  #define Debug(...) void(0)
#endif
#define rep(i, n) for (int i = 0; i < (n); ++i)
using ll = long long;
using ull = unsigned long long;

int main() {
  long double x = (2 + 3 + 5 + 7 + 11 + 13) / 6.0;
  long double y = (4 + 6 + 8 + 9 + 10 + 12) / 6.0;
  int a, b;
  cin >> a >> b;
  cout << fixed << setprecision(15) << powl(x, a) * powl(y, b) << endl;
  return 0;
}
0