結果

問題 No.242 ビンゴゲーム
ユーザー k
提出日時 2021-03-02 21:01:34
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 4 ms / 2,000 ms
コード長 286 bytes
コンパイル時間 3,121 ms
コンパイル使用メモリ 191,324 KB
最終ジャッジ日時 2025-01-19 09:33:19
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;

int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);

  int n;
  cin >> n;

  double ret = 12.0;
  for (int i = 0; i < 5; i++)
    ret *= (double)(n-i) / (99-i);

  cout << fixed << setprecision(12) << ret << endl;
  
  return 0;
}
0