結果

問題 No.3001 ヘビ文字列
ユーザー lam6er
提出日時 2025-04-16 15:22:47
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 290 bytes
コンパイル時間 301 ms
コンパイル使用メモリ 82,024 KB
実行使用メモリ 90,868 KB
最終ジャッジ日時 2025-04-16 15:24:28
合計ジャッジ時間 28,906 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 4
other RE * 83
権限があれば一括ダウンロードができます

ソースコード

diff #

X, Y = map(float, input().split())

max_b = X - max(0.0, X + Y - 1.0)
min_b = X - min(X, Y)

# Ensure that the values are within [0, 1] to handle any floating point inaccuracies
max_b = max(0.0, min(max_b, X))
min_b = max(0.0, min(min_b, X))

print("{0:.11f} {1:.11f}".format(max_b, min_b))
0