結果

問題 No.212 素数サイコロと合成数サイコロ (2)
ユーザー eve__fuyuki
提出日時 2018-03-15 03:54:08
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 324 bytes
コンパイル時間 700 ms
コンパイル使用メモリ 53,852 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-14 05:47:41
合計ジャッジ時間 1,170 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<cstdio>
using namespace std;
int main(){
    double ans;
    int P,C;
    long long product=1;
    cin >> P >> C;
    for(int i=0;i<P;i++) product *= 41;
    for(int i=0;i<C;i++) product *= 49;
    ans = product;
    for(int i=0;i<P+C;i++) ans /= 6.0;
    printf("%.10lf\n",ans);
    return 0;
}
0