結果
| 問題 | No.212 素数サイコロと合成数サイコロ (2) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-05-28 03:20:34 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 5,000 ms |
| コード長 | 382 bytes |
| 記録 | |
| コンパイル時間 | 977 ms |
| コンパイル使用メモリ | 177,072 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2026-03-28 01:13:41 |
| 合計ジャッジ時間 | 1,604 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int dx[]={2,3,5,7,11,13};
int dy[]={4,6,8,9,10,12};
int main(){
int P,C;
cin>>P>>C;
double x=0,y=0;
for (int i = 0; i < 6; i++) {
x+=dx[i];
y+=dy[i];
}
x/=6;
y/=6;
cout<<fixed<<setprecision(12)<<pow(x,P)*pow(y,C)<<endl;
return 0;
}