結果

問題 No.3001 確率論ってこういうものですよね
ユーザー GrenacheGrenache
提出日時 2015-09-01 19:39:49
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 352 bytes
コンパイル時間 3,482 ms
コンパイル使用メモリ 72,260 KB
実行使用メモリ 58,696 KB
最終ジャッジ日時 2023-09-25 21:47:44
合計ジャッジ時間 6,047 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 140 ms
56,316 KB
testcase_01 AC 141 ms
55,996 KB
testcase_02 AC 140 ms
55,956 KB
testcase_03 AC 139 ms
55,972 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_yukicoder3001 {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        double x = sc.nextDouble();
        double y = sc.nextDouble();

        System.out.printf("%.10f %.10f\n", Math.max(0.0, x - y), Math.min(x, 1.0 - y));
        
        sc.close();
    }
}
0