結果
問題 | No.242 ビンゴゲーム |
ユーザー |
|
提出日時 | 2015-07-10 23:14:07 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 294 bytes |
コンパイル時間 | 406 ms |
コンパイル使用メモリ | 54,544 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-08 02:09:14 |
合計ジャッジ時間 | 834 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 8 |
ソースコード
#include <iostream> using namespace std; typedef long long ll; ll P(int n, int k){ ll res = 1; for(int i=0;i<k;i++)res *= n - i; return res; } int main(){ int N; cin >> N; ll num = P(N, 5); ll den = P(99, 5); double res = 12.0 * num / den; printf("%.10f\n", res); return 0; }