結果
問題 |
No.1835 Generalized Monty Hall Problem
|
ユーザー |
|
提出日時 | 2022-03-18 14:49:22 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 165 bytes |
コンパイル時間 | 1,521 ms |
コンパイル使用メモリ | 164,996 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-02 18:03:03 |
合計ジャッジ時間 | 2,303 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 4 |
other | WA * 11 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(){ double N,M,K; cin>>N>>M>>K; double answer=M*(N-1)/(N*(N-K-1)); printf("%.10f\n", answer); }