結果
| 問題 | 
                            No.8001 確率論ってこういうものですよね
                             | 
                    
| コンテスト | |
| ユーザー | 
                             Lepton_s
                         | 
                    
| 提出日時 | 2015-02-11 00:49:09 | 
| 言語 | C++11(廃止可能性あり)  (gcc 13.3.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 2 ms / 5,000 ms | 
| コード長 | 205 bytes | 
| コンパイル時間 | 451 ms | 
| コンパイル使用メモリ | 57,332 KB | 
| 実行使用メモリ | 6,944 KB | 
| 最終ジャッジ日時 | 2024-06-23 18:26:22 | 
| 合計ジャッジ時間 | 963 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 10 | 
ソースコード
#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-min(a,1.0-b)<<endl;
	return 0;
}
            
            
            
        
            
Lepton_s