結果
問題 | No.242 ビンゴゲーム |
ユーザー |
![]() |
提出日時 | 2016-08-23 23:52:11 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 438 bytes |
コンパイル時間 | 570 ms |
コンパイル使用メモリ | 71,564 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-08 00:06:50 |
合計ジャッジ時間 | 1,128 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 8 |
ソースコード
#include <iostream>#include <string>#include <vector>#include <algorithm>#include <cmath>#include <iomanip>using namespace std;#define rep(i,n) for(int i=0;i<n;i++)#define ll long longint main() {int n;ll C_n_5 = 1, C_99_5;cin >> n;rep(i, 5) {C_n_5 *= (n-i);}C_n_5 /= 120;C_99_5 = (ll)99 * 98 * 97 * 96 * 95;C_99_5 /= 120;cout <<fixed<<setprecision(7)<< C_n_5 * 12 / (double)C_99_5 << endl;return 0;}