結果
問題 |
No.1042 愚直大学
|
ユーザー |
|
提出日時 | 2022-06-23 19:05:44 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 250 bytes |
コンパイル時間 | 215 ms |
コンパイル使用メモリ | 82,080 KB |
実行使用メモリ | 82,144 KB |
最終ジャッジ日時 | 2024-11-07 11:20:09 |
合計ジャッジ時間 | 3,931 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 2 TLE * 1 -- * 20 |
ソースコード
from math import log2 def is_ok(N): return N * N <= Q * log2(N) * N + P P, Q = map(int, input().split()) ok = 1 ng = 10 ** 18 while ng - ok > 0.000001: m = (ok + ng) / 2 if is_ok(m): ok = m else: ng = m print(ok)