結果
問題 | No.8001 確率論ってこういうものですよね |
ユーザー |
👑 ![]() |
提出日時 | 2020-10-08 21:48:09 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 303 bytes |
コンパイル時間 | 1,552 ms |
コンパイル使用メモリ | 165,904 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-07-20 06:07:43 |
合計ジャッジ時間 | 2,066 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 4 WA * 6 |
ソースコード
#include<bits/stdc++.h>using namespace std;using LL = long long;using ULL = unsigned long long;#define rep(i,n) for(int i=0; i<(n); i++)int main() {double X, Y; cin >> X >> Y; Y = 1. - Y;cout << fixed << setprecision(10);cout << max(X + Y - 1., 0.) << " " << min(X, Y) << endl;return 0;}