結果
| 問題 |
No.1042 愚直大学
|
| コンテスト | |
| ユーザー |
m4c_physics99
|
| 提出日時 | 2020-05-01 21:48:06 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 224 bytes |
| コンパイル時間 | 202 ms |
| コンパイル使用メモリ | 82,816 KB |
| 実行使用メモリ | 128,128 KB |
| 最終ジャッジ日時 | 2024-12-25 03:09:11 |
| 合計ジャッジ時間 | 10,667 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 15 WA * 5 TLE * 3 |
ソースコード
from math import log2
p,q = map(int,input().split())
def f(n) :
return p+q*n*log2(n)-n*n
top = 10**10
bot = 1
while top - bot > 10**(-7):
mid = (top + bot)/2
if f(mid) >= 0:bot = mid
else:top = mid
print(bot)
m4c_physics99