結果
| 問題 | No.1042 愚直大学 |
| コンテスト | |
| ユーザー |
m4c_physics99
|
| 提出日時 | 2020-05-01 21:51:20 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 224 bytes |
| 記録 | |
| コンパイル時間 | 173 ms |
| コンパイル使用メモリ | 85,248 KB |
| 実行使用メモリ | 86,784 KB |
| 最終ジャッジ日時 | 2026-05-30 20:36:28 |
| 合計ジャッジ時間 | 5,274 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 2 TLE * 1 -- * 20 |
ソースコード
from math import log2
p,q = map(int,input().split())
def f(n) :
return p+q*n*log2(n)-n*n
top = 10**12
bot = 1
while top - bot > 10**(-6):
mid = (top + bot)/2
if f(mid) >= 0:bot = mid
else:top = mid
print(bot)
m4c_physics99