結果

問題 No.242 ビンゴゲーム
ユーザー kurenai3110kurenai3110
提出日時 2016-08-23 23:50:25
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 396 bytes
コンパイル時間 536 ms
コンパイル使用メモリ 63,992 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-08-07 19:06:08
合計ジャッジ時間 1,209 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,380 KB
testcase_01 AC 1 ms
4,376 KB
testcase_02 AC 2 ms
4,380 KB
testcase_03 AC 1 ms
4,380 KB
testcase_04 AC 2 ms
4,376 KB
testcase_05 AC 1 ms
4,376 KB
testcase_06 AC 1 ms
4,376 KB
testcase_07 AC 2 ms
4,376 KB
testcase_08 WA -
testcase_09 AC 2 ms
4,376 KB
testcase_10 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#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;
}
0