結果
| 問題 |
No.1042 愚直大学
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-02-08 11:14:22 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 245 bytes |
| コンパイル時間 | 356 ms |
| コンパイル使用メモリ | 82,400 KB |
| 実行使用メモリ | 129,344 KB |
| 最終ジャッジ日時 | 2025-02-08 11:14:40 |
| 合計ジャッジ時間 | 17,200 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 18 TLE * 5 |
ソースコード
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 = 1e11
while ng - ok > 0.000001:
m = (ok + ng) / 2
if is_ok(m):
ok = m
else:
ng = m
print(ok)