結果
問題 | No.212 素数サイコロと合成数サイコロ (2) |
ユーザー |
![]() |
提出日時 | 2017-06-27 14:50:42 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 320 bytes |
コンパイル時間 | 448 ms |
コンパイル使用メモリ | 62,984 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-04 11:31:45 |
合計ジャッジ時間 | 948 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 |
ソースコード
#include <iostream> #include <iomanip> using namespace std; int main() { // your code goes here int a,b; long double r=1; long double d=1; cin>>a>>b; for(int i=0;i<a;i++){ r=r*41; } for(int i=0;i<b;i++){ r=r*49; } for(int i=0;i<a+b;i++){ d=d*6; } cout<<fixed<<setprecision(10)<<r/d<<endl; return 0; }