結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 176 ms
55,288 KB
testcase_01 AC 175 ms
55,332 KB
testcase_02 AC 178 ms
55,468 KB
testcase_03 AC 180 ms
55,436 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*(1-y));
        }
    }
}
0