結果

問題 No.242 ビンゴゲーム
ユーザー machy
提出日時 2015-07-10 22:53:59
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 325 bytes
コンパイル時間 450 ms
コンパイル使用メモリ 64,136 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-07-08 02:03:57
合計ジャッジ時間 894 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
#include <string>
#include <iomanip>

using namespace std;

typedef long long LL;

int main(){
    int N;
    cin >> N;
    double base = 1.0;
    for(int i = 0; i < 5; i++){
        base *= (double)(N-i)/(99-i);
    }
    cout << setprecision(13) << base * 12 << endl;

    return 0;
}
0