結果
| 問題 |
No.1042 愚直大学
|
| コンテスト | |
| ユーザー |
uni_python
|
| 提出日時 | 2020-06-21 14:39:42 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 50 ms / 2,000 ms |
| コード長 | 460 bytes |
| コンパイル時間 | 174 ms |
| コンパイル使用メモリ | 82,496 KB |
| 実行使用メモリ | 61,216 KB |
| 最終ジャッジ日時 | 2024-07-03 17:59:33 |
| 合計ジャッジ時間 | 2,124 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 23 |
ソースコード
import sys
input=sys.stdin.readline
def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))
mod=10**9+7
def main():
import math
P,Q=MI()
def f(x):
return x**2<=P+Q*x*math.log2(x)
ok=1
ng=10**16
for _ in range(10**5):
x=(ok+ng)/2
if f(x):
ok=x
else:
ng=x
print(ok)
main()
uni_python