結果
問題 |
No.3001 ヘビ文字列
|
ユーザー |
![]() |
提出日時 | 2025-04-15 20:56:28 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 290 bytes |
コンパイル時間 | 1,163 ms |
コンパイル使用メモリ | 82,592 KB |
実行使用メモリ | 91,380 KB |
最終ジャッジ日時 | 2025-04-15 21:00:00 |
合計ジャッジ時間 | 29,499 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 4 |
other | RE * 83 |
ソースコード
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))