結果

問題 No.8001 確率論ってこういうものですよね
ユーザー lumc_
提出日時 2018-03-22 02:55:19
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 247 bytes
コンパイル時間 1,617 ms
コンパイル使用メモリ 158,052 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-24 19:56:53
合計ジャッジ時間 2,267 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
using ll = long long;

int main() {
  ios::sync_with_stdio(false), cin.tie(0);
  double x, y; cin >> x >> y;
  cout << fixed << setprecision(10) << min(x, 1 - y) << " "
    << max(x - y, .0) << endl;
}
0