結果
| 問題 |
No.1230 Hall_and_me
|
| コンテスト | |
| ユーザー |
lam6er
|
| 提出日時 | 2025-03-20 18:58:41 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 39 ms / 2,000 ms |
| コード長 | 230 bytes |
| コンパイル時間 | 343 ms |
| コンパイル使用メモリ | 82,212 KB |
| 実行使用メモリ | 53,748 KB |
| 最終ジャッジ日時 | 2025-03-20 18:59:38 |
| 合計ジャッジ時間 | 2,894 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 36 |
ソースコード
P, Q, R = map(int, input().split())
S = P + Q + R
p = [P/S, Q/S, R/S]
max_prob = 0.0
for pi in p:
current_max = max(pi, 1 - pi)
if current_max > max_prob:
max_prob = current_max
print("{0:.12f}".format(max_prob))
lam6er