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