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