結果

問題 No.3001 確率論ってこういうものですよね
ユーザー GrenacheGrenache
提出日時 2015-09-01 19:41:44
言語 Java21
(openjdk 21)
結果
AC  
実行時間 141 ms / 5,000 ms
コード長 352 bytes
コンパイル時間 4,257 ms
コンパイル使用メモリ 72,032 KB
実行使用メモリ 56,560 KB
最終ジャッジ日時 2023-09-25 21:47:54
合計ジャッジ時間 5,434 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 137 ms
56,560 KB
testcase_01 AC 137 ms
56,240 KB
testcase_02 AC 137 ms
56,128 KB
testcase_03 AC 134 ms
55,916 KB
testcase_04 AC 135 ms
54,060 KB
testcase_05 AC 141 ms
56,284 KB
testcase_06 AC 139 ms
56,056 KB
testcase_07 AC 138 ms
56,268 KB
testcase_08 AC 139 ms
56,272 KB
testcase_09 AC 139 ms
56,092 KB
権限があれば一括ダウンロードができます

ソースコード

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.min(x, 1.0 - y), Math.max(0.0, x - y));
        
        sc.close();
    }
}
0