結果
問題 |
No.242 ビンゴゲーム
|
ユーザー |
![]() |
提出日時 | 2016-08-23 23:50:25 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 396 bytes |
コンパイル時間 | 660 ms |
コンパイル使用メモリ | 63,508 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-08 00:06:40 |
合計ジャッジ時間 | 1,036 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 6 WA * 2 |
ソースコード
#include <iostream> #include <string> #include <vector> #include <algorithm> #include <cmath> using namespace std; #define rep(i,n) for(int i=0;i<n;i++) #define ll long long int 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 << C_n_5 * 12 / (double)C_99_5 << endl; return 0; }