結果
| 問題 | 
                            No.212 素数サイコロと合成数サイコロ (2)
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2015-09-20 22:38:59 | 
| 言語 | C++11(廃止可能性あり)  (gcc 13.3.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 529 bytes | 
| コンパイル時間 | 458 ms | 
| コンパイル使用メモリ | 58,776 KB | 
| 実行使用メモリ | 6,940 KB | 
| 最終ジャッジ日時 | 2024-07-19 08:24:31 | 
| 合計ジャッジ時間 | 904 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 8 WA * 2 | 
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:28:15: warning: use of ‘ll’ length modifier with ‘f’ type character has either no effect or undefined behavior [-Wformat=]
   28 |    printf("%llf\n",ans);
      |               ^
            
            ソースコード
#include <iostream>
using namespace std;
#include <cstdio>
#include <string.h>
#include <stdlib.h>
#include <math.h>
#define FOR(i,a,b) for(int (i)=(a);i<(b);i++)
typedef long long ll;
typedef unsigned long long ull;
typedef long double lb;
/* ここからが本編 */
int main(void)
{
   int i,j,k,l;
   int p,c;
   long double a,b,ans=1;
   a = (long double)(2+3+5+7+11+13)/6;
   b = (long double)(4+6+8+9+10+12)/6;
   cin >> p >> c;
   FOR(i,0,p) ans *= a;
   FOR(i,0,c) ans *= b;
   printf("%llf\n",ans);
   return 0;
}