結果

問題 No.3001 ヘビ文字列
ユーザー lam6er
提出日時 2025-04-15 20:54:17
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 290 bytes
コンパイル時間 519 ms
コンパイル使用メモリ 82,296 KB
実行使用メモリ 91,316 KB
最終ジャッジ日時 2025-04-15 20:56:14
合計ジャッジ時間 27,252 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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