結果

問題 No.3001 確率論ってこういうものですよね
ユーザー mits58mits58
提出日時 2016-05-05 14:57:20
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 307 bytes
コンパイル時間 2,159 ms
コンパイル使用メモリ 76,200 KB
実行使用メモリ 55,640 KB
最終ジャッジ日時 2024-04-15 13:12:47
合計ジャッジ時間 4,725 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 183 ms
55,368 KB
testcase_01 AC 176 ms
55,444 KB
testcase_02 AC 178 ms
55,164 KB
testcase_03 AC 190 ms
55,140 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
権限があれば一括ダウンロードができます

ソースコード

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