結果
問題 |
No.1042 愚直大学
|
ユーザー |
![]() |
提出日時 | 2020-05-12 20:21:31 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 214 bytes |
コンパイル時間 | 307 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 17,952 KB |
最終ジャッジ日時 | 2024-09-13 20:36:36 |
合計ジャッジ時間 | 3,946 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 2 TLE * 1 -- * 20 |
ソースコード
import sys input=lambda: sys.stdin.readline().rstrip() p,q=map(int,input().split()) import math l,r=1,10**18 while r-l>10**-6: mid=(l+r)/2 if mid**2<=p+q*mid*math.log2(mid): l=mid else: r=mid print(l)