結果
| 問題 |
No.8001 確率論ってこういうものですよね
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-09-01 19:39:49 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 352 bytes |
| コンパイル時間 | 3,362 ms |
| コンパイル使用メモリ | 74,424 KB |
| 実行使用メモリ | 41,844 KB |
| 最終ジャッジ日時 | 2024-07-18 17:30:35 |
| 合計ジャッジ時間 | 5,000 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 WA * 6 |
ソースコード
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();
}
}