結果
| 問題 |
No.1042 愚直大学
|
| コンテスト | |
| ユーザー |
m4c_physics99
|
| 提出日時 | 2020-05-01 22:01:10 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 224 bytes |
| コンパイル時間 | 270 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 21,632 KB |
| 最終ジャッジ日時 | 2024-12-25 08:07:00 |
| 合計ジャッジ時間 | 16,665 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 18 TLE * 5 |
ソースコード
from math import log2
p,q = map(int,input().split())
def f(n) :
return p+q*n*log2(n)-n*n
top = 10**11
bot = 1
while top - bot > 10**(-6):
mid = (top + bot)/2
if f(mid) >= 0:bot = mid
else:top = mid
print(bot)
m4c_physics99