結果
問題 |
No.1042 愚直大学
|
ユーザー |
|
提出日時 | 2023-09-22 14:51:23 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 231 bytes |
コンパイル時間 | 225 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 52,480 KB |
最終ジャッジ日時 | 2024-07-08 06:26:18 |
合計ジャッジ時間 | 1,767 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 2 |
other | WA * 23 |
ソースコード
P, Q = map(int, input().split()) P = 10 ** 9 Q = 10 ** 9 from math import log2 max1 = 10.0 ** 10 min1 = 1. while max1 - min1 > 10 ** (-5): h = (max1 + min1) / 2 if h < P/h + Q*log2(h): min1 = h else: max1 = h print(min1)