結果

問題 No.8001 確率論ってこういうものですよね
ユーザー mits58
提出日時 2016-05-05 14:57:20
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 307 bytes
コンパイル時間 2,217 ms
コンパイル使用メモリ 76,248 KB
実行使用メモリ 55,356 KB
最終ジャッジ日時 2024-10-05 09:38:08
合計ジャッジ時間 3,997 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 4 WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main{
	public static void main(String[] args){
        Scanner sc=new Scanner(System.in);
        while(sc.hasNext()){
        	double x=sc.nextDouble();
        	double y=sc.nextDouble();
        	System.out.println(x*(1-y)+" "+(x-Math.min(x, y)));
        }
    }
}
0