結果
| 問題 |
No.1042 愚直大学
|
| コンテスト | |
| ユーザー |
m4c_physics99
|
| 提出日時 | 2020-05-01 22:07:34 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 227 bytes |
| コンパイル時間 | 372 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 11,008 KB |
| 最終ジャッジ日時 | 2024-12-25 11:04:44 |
| 合計ジャッジ時間 | 1,976 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 15 WA * 8 |
ソースコード
from math import log2
p,q = map(int,input().split())
def f(n) :
return p+q*n*log2(n)-n*n
top = 4*(10**8)
bot = 1
while top - bot > 10**(-7):
mid = (top + bot)/2
if f(mid) >= 0:bot = mid
else:top = mid
print(bot)
m4c_physics99