結果
問題 |
No.8001 確率論ってこういうものですよね
|
ユーザー |
![]() |
提出日時 | 2015-02-11 00:45:28 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 229 bytes |
コンパイル時間 | 422 ms |
コンパイル使用メモリ | 57,848 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-23 18:26:21 |
合計ジャッジ時間 | 1,067 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 6 WA * 4 |
ソースコード
#include <iostream> #include <algorithm> using namespace std; int main(){ double a, b; cin>>a>>b; b = 1.0-b; if(a>b) swap(a, b); cout.precision(10); cout<<a<<" "<<(a+b<1.0+1e-9?0.0:max(0.0, (a+b-1)/a))<<endl; return 0; }