結果
| 問題 |
No.3001 ヘビ文字列
|
| ユーザー |
gew1fw
|
| 提出日時 | 2025-06-12 20:00:21 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 291 bytes |
| コンパイル時間 | 242 ms |
| コンパイル使用メモリ | 82,828 KB |
| 実行使用メモリ | 91,176 KB |
| 最終ジャッジ日時 | 2025-06-12 20:04:24 |
| 合計ジャッジ時間 | 39,356 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 4 |
| other | RE * 83 |
ソースコード
# Read input values
X, Y = map(float, input().split())
# Compute maximum possible probability
max_part = max(X + Y - 1.0, 0.0)
max_p = X - max_part
# Compute minimum possible probability
min_p = X - min(X, Y)
# Output with 11 decimal places
print("{0:.11f} {1:.11f}".format(max_p, min_p))
gew1fw