結果
問題 | No.212 素数サイコロと合成数サイコロ (2) |
ユーザー |
|
提出日時 | 2015-05-22 22:53:56 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 253 bytes |
コンパイル時間 | 489 ms |
コンパイル使用メモリ | 66,980 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-06 05:21:36 |
合計ジャッジ時間 | 987 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 |
ソースコード
#include <iostream>#include <iomanip>#include <math.h>using namespace std;int main(){int p, c;double d1 = 41, d2 = 49;cin >> p >> c;d1 = pow(d1 / 6, p);d2 = pow(d2 / 6, c);cout << fixed << setprecision(12) << (double)(d1 * d2) << endl;}