結果
問題 |
No.1042 愚直大学
|
ユーザー |
|
提出日時 | 2023-09-22 14:50:15 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 273 bytes |
コンパイル時間 | 201 ms |
コンパイル使用メモリ | 82,432 KB |
実行使用メモリ | 52,608 KB |
最終ジャッジ日時 | 2024-07-08 06:24:31 |
合計ジャッジ時間 | 1,670 ms |
ジャッジサーバーID (参考情報) |
judge4 / 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. h = 10 ** 5 while max1 - min1 > 10 ** (-6) and max1 - min1 > h*10**(-6) : h = (max1 + min1) / 2 if h < P/h + Q*log2(h): min1 = h else: max1 = h print(min1)